mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 14:04:06 +01:00
CI: Add sqlc code generation check
This commit is contained in:
parent
730db7ee8c
commit
ff1379a633
1 changed files with 23 additions and 0 deletions
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
|
@ -32,6 +32,29 @@ env:
|
||||||
GO_VERSION: 1.20.3
|
GO_VERSION: 1.20.3
|
||||||
|
|
||||||
jobs:
|
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
|
# RPC and mobile compilation check
|
||||||
########################
|
########################
|
||||||
|
|
Loading…
Add table
Reference in a new issue