add sqlc to ci diff check

This commit is contained in:
Scott McKendry
2026-05-15 19:58:31 +12:00
parent 5f5b188511
commit 2c03874444
+6
View File
@@ -26,8 +26,14 @@ jobs:
- name: Go dependencies
run: go mod download
- name: Setup sqlc
uses: sqlc-dev/setup-sqlc@v4
with:
sqlc-version: "1.31.1"
- name: Check codegen is up to date
run: |
sqlc generate
go generate ./internal/repository/...
git diff --exit-code -- internal/repository/
git status --porcelain -- internal/repository/ | grep -q . && echo "untracked files in internal/repository/" && exit 1 || true