From d325804359204fc24f74b1a0937258c6ea5cf2ba Mon Sep 17 00:00:00 2001 From: Noah Campbell Date: Mon, 13 Oct 2025 09:52:47 -0500 Subject: [PATCH] readded build binary action for tests --- .github/workflows/affected-tests.yml | 4 ++-- .github/workflows/push-full-tests.yml | 32 ++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/.github/workflows/affected-tests.yml b/.github/workflows/affected-tests.yml index 300e60d1..08a9e31c 100644 --- a/.github/workflows/affected-tests.yml +++ b/.github/workflows/affected-tests.yml @@ -2,7 +2,7 @@ name: Affected Go Tests on: workflow_run: - workflows: ["build-test"] + workflows: ["build"] types: [completed] branches: [main] @@ -11,7 +11,7 @@ permissions: jobs: test-affected: - # Only run if the build-test workflow succeeded and it's not a draft PR + # Only run if the build workflow succeeded and it's not a draft PR if: | github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' && diff --git a/.github/workflows/push-full-tests.yml b/.github/workflows/push-full-tests.yml index 3228be76..e8396d9e 100644 --- a/.github/workflows/push-full-tests.yml +++ b/.github/workflows/push-full-tests.yml @@ -18,8 +18,33 @@ jobs: - name: Run tests run: make test-integration + build-binaries: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v5 + - uses: ./.github/actions/setup-go + - name: Cache Go build and modules + uses: actions/cache@v4 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Go mod download + run: go mod download + - name: Build binaries + run: make build + - uses: actions/upload-artifact@v4 + with: + name: binaries + path: bin/ + retention-days: 1 + e2e: - needs: unit-integration + needs: [unit-integration, build-binaries] runs-on: ubuntu-latest timeout-minutes: 15 strategy: @@ -37,6 +62,11 @@ jobs: needs-k3s: false steps: - uses: actions/checkout@v5 + - uses: actions/download-artifact@v4 + with: + name: binaries + path: bin/ + - run: chmod +x bin/* - name: Setup K3s if: matrix.needs-k3s uses: replicatedhq/action-k3s@main