Skip to content

Commit 6894b79

Browse files
committed
.github: add CI step to run the sqlc check
1 parent 7f876ca commit 6894b79

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,28 @@ jobs:
152152
- name: check commits
153153
run: scripts/check-each-commit.sh upstream/${{ github.base_ref }}
154154

155+
#######################
156+
# sql model generation
157+
#######################
158+
sqlc-check:
159+
name: Sqlc check
160+
runs-on: ubuntu-latest
161+
steps:
162+
- name: git checkout
163+
uses: actions/checkout@v3
164+
165+
- name: setup go ${{ env.GO_VERSION }}
166+
uses: ./.github/actions/setup-go
167+
with:
168+
go-version: '${{ env.GO_VERSION }}'
169+
170+
- name: docker image cache
171+
uses: jpribyl/[email protected]
172+
continue-on-error: true
173+
174+
- name: Generate sql models
175+
run: make sqlc-check
176+
155177
########################
156178
# lint code
157179
########################

0 commit comments

Comments
 (0)