Skip to content

Commit bfc5889

Browse files
authored
ci: make test-go-pg depend on sqlc-vet (coder#11288)
1 parent 3ffe7f5 commit bfc5889

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,9 @@ jobs:
322322

323323
test-go-pg:
324324
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
325-
needs: changes
325+
needs:
326+
- changes
327+
- sqlc-vet # No point in testing the DB if the queries are invalid
326328
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
327329
# This timeout must be greater than the timeout set by `go test` in
328330
# `make test-postgres` to ensure we receive a trace of running
@@ -896,7 +898,7 @@ jobs:
896898
sqlc-vet:
897899
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
898900
needs: changes
899-
if: needs.changes.outputs.db == 'true' || github.ref == 'refs/heads/main'
901+
if: needs.changes.outputs.db == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
900902
steps:
901903
- name: Checkout
902904
uses: actions/checkout@v4

0 commit comments

Comments
 (0)