Skip to content

Commit 536b411

Browse files
committed
.github: add CI step to run the sqlc check
1 parent d3db19e commit 536b411

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
@@ -195,6 +195,28 @@ jobs:
195195
- name: check commits
196196
run: scripts/check-each-commit.sh upstream/${{ github.base_ref }}
197197

198+
#######################
199+
# sql model generation
200+
#######################
201+
sqlc-check:
202+
name: Sqlc check
203+
runs-on: ubuntu-latest
204+
steps:
205+
- name: git checkout
206+
uses: actions/checkout@v3
207+
208+
- name: setup go ${{ env.GO_VERSION }}
209+
uses: ./.github/actions/setup-go
210+
with:
211+
go-version: '${{ env.GO_VERSION }}'
212+
213+
- name: docker image cache
214+
uses: jpribyl/[email protected]
215+
continue-on-error: true
216+
217+
- name: Generate sql models
218+
run: make sqlc-check
219+
198220
########################
199221
# lint code
200222
########################

0 commit comments

Comments
 (0)