mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-05-17 17:50:14 +00:00
add sqlc to ci diff check
This commit is contained in:
@@ -28,8 +28,14 @@ jobs:
|
|||||||
- name: Go dependencies
|
- name: Go dependencies
|
||||||
run: go mod download
|
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
|
- name: Check codegen is up to date
|
||||||
run: |
|
run: |
|
||||||
|
sqlc generate
|
||||||
go generate ./internal/repository/...
|
go generate ./internal/repository/...
|
||||||
git diff --exit-code -- internal/repository/
|
git diff --exit-code -- internal/repository/
|
||||||
git status --porcelain -- internal/repository/ | grep -q . && echo "untracked files in internal/repository/" && exit 1 || true
|
git status --porcelain -- internal/repository/ | grep -q . && echo "untracked files in internal/repository/" && exit 1 || true
|
||||||
|
|||||||
Reference in New Issue
Block a user