Skip to content

chore(spanner): add environment variable for enabling rw multiplexed sessions #2095

chore(spanner): add environment variable for enabling rw multiplexed sessions

chore(spanner): add environment variable for enabling rw multiplexed sessions #2095

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@v4
- 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@v4
with:
java-version: 11
distribution: temurin
- name: Compiling main library
run: .kokoro/build.sh
- uses: actions/setup-java@v4
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: true
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW: true