Skip to content

Commit 75a00a1

Browse files
committed
feat(db): add code gen to build sqlc-compatible wrappers
1 parent 1d0a462 commit 75a00a1

7 files changed

Lines changed: 890 additions & 18 deletions

File tree

.github/workflows/ci.yml

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

29+
- name: Check codegen is up to date
30+
run: |
31+
go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
32+
sqlc diff
33+
go generate ./internal/repository/...
34+
git diff --exit-code -- internal/repository/
35+
git status --porcelain -- internal/repository/ | grep -q . && echo "untracked files in internal/repository/" && exit 1 || true
36+
2937
- name: Install frontend dependencies
3038
run: |
3139
cd frontend

0 commit comments

Comments
 (0)