mirror of
https://github.com/lightninglabs/aperture.git
synced 2026-01-15 15:24:24 +01:00
ci: add sqlc codegen check to pipeline
This commit is contained in:
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
@@ -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
|
||||
########################
|
||||
|
||||
Reference in New Issue
Block a user