chore: test gh actions #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: default | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
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- |