mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
ci: broaden scope of needs.changes.db (#11386)
* Broadens scope of needs.changes.db to include anything under the path coderd/database. * Removes dependency of test-go-pg on sqlc-vet.
This commit is contained in:
@@ -60,10 +60,7 @@ jobs:
|
||||
- "examples/lima/**"
|
||||
db:
|
||||
- "**.sql"
|
||||
- "coderd/database/queries/**"
|
||||
- "coderd/database/migrations"
|
||||
- "coderd/database/sqlc.yaml"
|
||||
- "coderd/database/dump.sql"
|
||||
- "coderd/database/**"
|
||||
go:
|
||||
- "**.sql"
|
||||
- "**.go"
|
||||
@@ -324,7 +321,6 @@ jobs:
|
||||
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user