From bfc588955c89ce0feb2aea8bc49e2f8d840cdabe Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 20 Dec 2023 08:47:47 +0000 Subject: [PATCH] ci: make test-go-pg depend on sqlc-vet (#11288) --- .github/workflows/ci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f2c070b70a..add1d38dee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -322,7 +322,9 @@ jobs: test-go-pg: runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }} - needs: changes + needs: + - changes + - sqlc-vet # No point in testing the DB if the queries are invalid if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main' # This timeout must be greater than the timeout set by `go test` in # `make test-postgres` to ensure we receive a trace of running @@ -896,7 +898,7 @@ jobs: sqlc-vet: runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }} needs: changes - if: needs.changes.outputs.db == 'true' || github.ref == 'refs/heads/main' + if: needs.changes.outputs.db == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main' steps: - name: Checkout uses: actions/checkout@v4