Skip to content

chore: test gh actions #27

chore: test gh actions

chore: test gh actions #27

Workflow file for this run

name: default
on:
pull_request:
push:
branches:
- main
jobs:

Check failure on line 7 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 7
base:
runs-on: self-hosted
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/[email protected]
with:
driver: remote
config: .github/buildkitd.toml
append: |
- endpoint: tcp://docker-amd64.ci.svc:2376
platform: linux/amd64
- endpoint: tcp://docker-arm64.ci.svc:2376
platform: linux/arm64
- name: base
run: |
make base
unit-tests:
needs: base
runs-on: self-hosted
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/[email protected]
with:
driver: remote
append: |
- endpoint: tcp://docker-amd64.ci.svc:2376
platform: linux/amd64
- endpoint: tcp://docker-arm64.ci.svc:2376
platform: linux/arm64
- name: unit-tests
run: |
make unit-tests
unit-tests-race:
needs: base
runs-on: self-hosted
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/[email protected]
with:
driver: remote
append: |
- endpoint: tcp://docker-amd64.ci.svc:2376
platform: linux/amd64
- endpoint: tcp://docker-arm64.ci.svc:2376
platform: linux/arm64
- name: unit-tests-race
run: |
make unit-tests-race
coverage:
needs: [unit-tests, unit-tests-race]
runs-on: self-hosted
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/[email protected]
with:
driver: remote
append: |
- endpoint: tcp://docker-amd64.ci.svc:2376
platform: linux/amd64
- endpoint: tcp://docker-arm64.ci.svc:2376
platform: linux/arm64
steps:
- name: coverage
run: |
make coverage
:
needs: base
runs-on: self-hosted
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/[email protected]
with:
driver: remote
append: |
- endpoint: tcp://docker-amd64.ci.svc:2376
platform: linux/amd64
- endpoint: tcp://docker-arm64.ci.svc:2376
platform: linux/arm64
- name:
run: |
make
lint:
needs: base
runs-on: self-hosted
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/[email protected]
with:
driver: remote
append: |
- endpoint: tcp://docker-amd64.ci.svc:2376
platform: linux/amd64
- endpoint: tcp://docker-arm64.ci.svc:2376
platform: linux/arm64
- name: lint
run: |
make lint
image-:
needs: [, lint, unit-tests, unit-tests-race]
runs-on: self-hosted
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/[email protected]
with:
driver: remote
append: |
- endpoint: tcp://docker-amd64.ci.svc:2376
platform: linux/amd64
- endpoint: tcp://docker-arm64.ci.svc:2376
platform: linux/arm64
- name: image-
run: |
make image-
push-:
permissions:
packages: write
needs: image-
runs-on: self-hosted
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/[email protected]
with:
driver: remote
append: |
- endpoint: tcp://docker-amd64.ci.svc:2376
platform: linux/amd64
- endpoint: tcp://docker-arm64.ci.svc:2376
platform: linux/arm64
- name: Login to GHCR
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: push-
run: |
make push-