Feature/query parameter limit #209
Workflow file for this run
This file contains hidden or 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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| test-go: | |
| name: Test Go | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: './go.mod' | |
| - name: Run tests | |
| run: go test ./... | |
| test-java: | |
| needs: [test-go] | |
| name: Test Java | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: './go.mod' | |
| - name: Build plugin | |
| working-directory: plugin | |
| run: GOOS=wasip1 GOARCH=wasm go build -o ../tests/sqlc-gen-java.wasm | |
| - name: Update file hash | |
| working-directory: ./tests | |
| run: | | |
| export checksum=$(sha256sum sqlc-gen-java.wasm | awk '{print $1}') | |
| yq -i '.plugins[0].wasm.sha256 = env(checksum)' sqlc.yaml | |
| - name: Setup SQLC | |
| uses: sqlc-dev/setup-sqlc@v4 | |
| with: | |
| sqlc-version: '1.28.0' | |
| - name: Generate code | |
| working-directory: ./tests | |
| run: sqlc generate | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'adopt' | |
| - name: Run tests | |
| working-directory: ./tests | |
| run: ./mvnw -ntp test |