Skip to content

Commit 2c03874

Browse files
committed
add sqlc to ci diff check
1 parent 5f5b188 commit 2c03874

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@ jobs:
2626
- name: Go dependencies
2727
run: go mod download
2828

29+
- name: Setup sqlc
30+
uses: sqlc-dev/setup-sqlc@v4
31+
with:
32+
sqlc-version: "1.31.1"
33+
2934
- name: Check codegen is up to date
3035
run: |
36+
sqlc generate
3137
go generate ./internal/repository/...
3238
git diff --exit-code -- internal/repository/
3339
git status --porcelain -- internal/repository/ | grep -q . && echo "untracked files in internal/repository/" && exit 1 || true

0 commit comments

Comments
 (0)