From ff1379a63399f5de1142c1ec05d7a6ed6ae4e2a0 Mon Sep 17 00:00:00 2001 From: positiveblue Date: Tue, 30 May 2023 07:41:42 -0700 Subject: [PATCH] CI: Add sqlc code generation check --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 43ef4b815..1796cad3f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 ########################