sqlc #229
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: sqlc | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: '0 10 * * 1' # run "At 10:00 on Monday" | |
workflow_call: | |
jobs: | |
run: | |
name: Sqlc | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Install SQLc | |
uses: sqlc-dev/setup-sqlc@v4 | |
with: | |
sqlc-version: '1.25.0' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run sqlc diff | |
run: find . -name sqlc.yaml | xargs go run github.com/sqlc-dev/sqlc/cmd/sqlc diff -f | |
- name: Run sqlc vet | |
run: find . -name sqlc.yaml | xargs go run github.com/sqlc-dev/sqlc/cmd/sqlc vet -f |