diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a0047c0e..ff0a1a0e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,25 @@ jobs: - name: run check run: make rpc-check - + + ######################## + # SQL compile and check + ######################## + sqlc-check: + name: SQL compilation check + runs-on: ubuntu-latest + steps: + - name: git checkout + uses: actions/checkout@v2 + + - name: setup go ${{ env.GO_VERSION }} + uses: actions/setup-go@v2 + with: + go-version: '~${{ env.GO_VERSION }}' + + - name: run check + run: make sqlc-check + ######################## # go mod check ########################