Skip to content

chore: test gh actions #39

chore: test gh actions

chore: test gh actions #39

Workflow file for this run

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/setup-buildx-action@v2.9.0
with:
driver: remote
config: .github/buildkitd.toml
endpoint: tcp://docker-amd64.ci.svc:2376
# append: |
# - 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/setup-buildx-action@v2.9.0
with:
driver: remote
config: .github/buildkitd.toml
endpoint: tcp://docker-amd64.ci.svc:2376
# append: |
# - 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/setup-buildx-action@v2.9.0
with:
driver: remote
config: .github/buildkitd.toml
endpoint: tcp://docker-amd64.ci.svc:2376
# append: |
# - 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/setup-buildx-action@v2.9.0
with:
driver: remote
config: .github/buildkitd.toml
endpoint: tcp://docker-amd64.ci.svc:2376
# append: |
# - endpoint: tcp://docker-arm64.ci.svc:2376
# platform: linux/arm64
- name: coverage
run: |
make coverage
kres:
needs: base
runs-on: self-hosted
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.9.0
with:
driver: remote
config: .github/buildkitd.toml
endpoint: tcp://docker-amd64.ci.svc:2376
# append: |
# - endpoint: tcp://docker-arm64.ci.svc:2376
# platform: linux/arm64
- name: kres
run: |
make kres
lint:
needs: base
runs-on: self-hosted
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.9.0
with:
driver: remote
config: .github/buildkitd.toml
endpoint: tcp://docker-amd64.ci.svc:2376
# append: |
# - endpoint: tcp://docker-arm64.ci.svc:2376
# platform: linux/arm64
- name: lint
run: |
make lint
image-kres:
needs: [kres, lint, unit-tests, unit-tests-race]
runs-on: self-hosted
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.9.0
with:
driver: remote
config: .github/buildkitd.toml
endpoint: tcp://docker-amd64.ci.svc:2376
# append: |
# - endpoint: tcp://docker-arm64.ci.svc:2376
# platform: linux/arm64
- name: image-kres
run: |
make image-kres
push-kres:
permissions:
packages: write
needs: image-kres
runs-on: self-hosted
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.9.0
with:
driver: remote
config: .github/buildkitd.toml
endpoint: tcp://docker-amd64.ci.svc:2376
# append: |
# - endpoint: tcp://docker-arm64.ci.svc:2376
# platform: linux/arm64
- name: Login to GHCR
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: push-kres
run: |
make push-kres