ci: add sqlc codegen check to pipeline

This commit is contained in:
positiveblue
2023-05-28 11:10:34 -07:00
parent f5dd767145
commit bddbc9326d

View File

@@ -27,6 +27,9 @@ env:
GO_VERSION: 1.19.2
jobs:
########################
# rpc compilation check
########################
rpc-check:
name: RPC check
runs-on: ubuntu-latest
@@ -37,6 +40,22 @@ jobs:
- name: Generate RPC stubs and check REST annotations
run: make rpc-check
#######################
# sql model generation
#######################
sqlc-check:
name: Sqlc check
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
- name: docker image cache
uses: satackey/action-docker-layer-caching@v0.0.11
- name: Generate sql models
run: make sqlc-check
########################
# lint code
########################