build: add option to force regenerate all #407
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
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| name: java-spanner-jdbc Integration tests against emulator | |
| env: | |
| BUILD_SUBDIR: java-spanner-jdbc | |
| jobs: | |
| filter: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| library: ${{ steps.filter.outputs.library }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| library: | |
| - 'java-spanner-jdbc/**' | |
| tests-against-emulator: | |
| needs: filter | |
| if: ${{ needs.filter.outputs.library == 'true' }} | |
| runs-on: ubuntu-latest | |
| services: | |
| emulator: | |
| image: gcr.io/cloud-spanner-emulator/emulator:latest | |
| ports: | |
| - 9010:9010 | |
| - 9020:9020 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - run: java -version | |
| - name: Install dependencies for the integration test | |
| run: .kokoro/build.sh | |
| env: | |
| JOB_TYPE: test | |
| - run: mvn -B -Dspanner.testenv.instance="" -Penable-integration-tests -DtrimStackTrace=false -Dclirr.skip=true -Denforcer.skip=true -fae verify | |
| working-directory: java-spanner-jdbc | |
| env: | |
| SPANNER_EMULATOR_HOST: localhost:9010 | |
| GOOGLE_CLOUD_PROJECT: emulator-test-project |