CI: Add sqlc code generation check

This commit is contained in:
positiveblue 2023-05-30 07:41:42 -07:00
parent 730db7ee8c
commit ff1379a633
No known key found for this signature in database
GPG key ID: 4FFF2510928804DC

View file

@ -32,6 +32,29 @@ env:
GO_VERSION: 1.20.3
jobs:
########################
# SQLC code gen check
########################
sqlc-check:
name: Sqlc check
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
- name: setup go ${{ env.GO_VERSION }}
uses: ./.github/actions/setup-go
with:
go-version: '${{ env.GO_VERSION }}'
- name: docker image cache
uses: satackey/action-docker-layer-caching@v0.0.11
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
- name: Generate sql models
run: make sqlc-check
########################
# RPC and mobile compilation check
########################