chore: validate queries using sqlc-vet in github actions (#11163)

This commit is contained in:
Steven Masley
2023-12-12 15:53:26 -06:00
committed by GitHub
parent dba0dfa859
commit e52d848d05
3 changed files with 42 additions and 0 deletions
+6
View File
@@ -82,6 +82,12 @@ sql:
- schema: "./dump.sql"
queries: "./queries"
engine: "postgresql"
# This only works if you are running a local postgres database with the
# schema loaded and migrations run. Run `make sqlc-vet` to run the linter.
database:
uri: "${SQLC_DATABASE_URL}"
rules:
- sqlc/db-prepare
gen:
go:
package: "database"