Repository navigation
chore(ci): use and pin librarian actions to v0.53.0 #11780
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
| permissions: | |
| contents: read | |
| 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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| persist-credentials: false | |
| - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 | |
| 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@sha256:ad54472fe7b161b9214f7f816f304b649a4779e348229c375ac067f5ed5a6422 # 1.5.55 | |
| ports: | |
| - 9010:9010 | |
| - 9020:9020 | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| cache: maven | |
| - 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 |