Skip to content

Commit 0244f39

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

7 files changed

Lines changed: 886 additions & 18 deletions

File tree

.github/workflows/ci.yml

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

29+
- name: Check codegen is up to date
30+
run: |
31+
go generate ./internal/repository/...
32+
git diff --exit-code -- internal/repository/
33+
git status --porcelain -- internal/repository/ | grep -q . && echo "untracked files in internal/repository/" && exit 1 || true
34+
2935
- name: Install frontend dependencies
3036
run: |
3137
cd frontend

0 commit comments

Comments
 (0)