File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,9 @@ jobs:
322
322
323
323
test-go-pg :
324
324
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
326
328
if : needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
327
329
# This timeout must be greater than the timeout set by `go test` in
328
330
# `make test-postgres` to ensure we receive a trace of running
@@ -896,7 +898,7 @@ jobs:
896
898
sqlc-vet :
897
899
runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
898
900
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'
900
902
steps :
901
903
- name : Checkout
902
904
uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments