add sqlc to ci diff check

This commit is contained in:
Scott McKendry
2026-05-15 19:58:31 +12:00
parent 169fd8e903
commit ea15206906
+6
View File
@@ -28,8 +28,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