diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f990c38f..9fdcc5f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,11 @@ concurrency: cancel-in-progress: true jobs: + tests: + uses: ./.github/workflows/tests.yml + build-amd64: + needs: tests runs-on: ubuntu-24.04 steps: - name: Check out the repo @@ -37,6 +41,7 @@ jobs: ghcr.io/${{ github.repository_owner }}/api:latest-amd64 ghcr.io/${{ github.repository_owner }}/api:${{ github.sha }}-amd64 build-arm64: + needs: tests runs-on: ubuntu-24.04-arm steps: - name: Check out the repo diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6b4898d9..ff7440c5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,13 +2,11 @@ name: tests on: pull_request: - push: - branches: - - "main" + workflow_call: workflow_dispatch: concurrency: - group: tests-${{ github.ref }} + group: tests-${{ github.ref }}-${{ github.workflow }} cancel-in-progress: true jobs: