Skip to content

Commit ea15206

Browse files
committed
add sqlc to ci diff check
1 parent 169fd8e commit ea15206

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
@@ -28,8 +28,14 @@ jobs:
2828
- name: Go dependencies
2929
run: go mod download
3030

31+
- name: Setup sqlc
32+
uses: sqlc-dev/setup-sqlc@v4
33+
with:
34+
sqlc-version: "1.31.1"
35+
3136
- name: Check codegen is up to date
3237
run: |
38+
sqlc generate
3339
go generate ./internal/repository/...
3440
git diff --exit-code -- internal/repository/
3541
git status --porcelain -- internal/repository/ | grep -q . && echo "untracked files in internal/repository/" && exit 1 || true

0 commit comments

Comments
 (0)