fix: do a quick check if the application runs on GCP #926
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
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| name: integration-tests-against-emulator-with-multiplexed-session | |
| jobs: | |
| units: | |
| runs-on: ubuntu-latest | |
| services: | |
| emulator: | |
| image: gcr.io/cloud-spanner-emulator/emulator:latest | |
| ports: | |
| - 9010:9010 | |
| - 9020:9020 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: stCarolas/setup-maven@v5 | |
| with: | |
| maven-version: 3.8.1 | |
| # Build with JDK 11 and run tests with JDK 8 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: 11 | |
| distribution: temurin | |
| - name: Compiling main library | |
| run: .kokoro/build.sh | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: 8 | |
| distribution: temurin | |
| - name: Running tests | |
| run: | | |
| mvn -V -B -Dspanner.testenv.instance="" -Penable-integration-tests \ | |
| -DtrimStackTrace=false -Dclirr.skip=true -Denforcer.skip=true \ | |
| -Dmaven.main.skip=true -fae verify | |
| env: | |
| JOB_TYPE: test | |
| SPANNER_EMULATOR_HOST: localhost:9010 | |
| GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS: false |