Skip to content

Commit 5fa24fa

Browse files
author
Arpan Mishra
authored
chore: add a CI target to run emulator integration tests using multiplexed session. (#3028)
1 parent 4a0542a commit 5fa24fa

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
name: integration-tests-against-emulator-with-multiplexed-session
7+
jobs:
8+
units:
9+
runs-on: ubuntu-latest
10+
11+
services:
12+
emulator:
13+
image: gcr.io/cloud-spanner-emulator/emulator:latest
14+
ports:
15+
- 9010:9010
16+
- 9020:9020
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: stCarolas/setup-maven@v5
21+
with:
22+
maven-version: 3.8.1
23+
# Build with JDK 11 and run tests with JDK 8
24+
- uses: actions/setup-java@v4
25+
with:
26+
java-version: 11
27+
distribution: temurin
28+
- name: Compiling main library
29+
run: .kokoro/build.sh
30+
- uses: actions/setup-java@v4
31+
with:
32+
java-version: 8
33+
distribution: temurin
34+
- name: Running tests
35+
run: |
36+
mvn -V -B -Dspanner.testenv.instance="" -Penable-integration-tests \
37+
-DtrimStackTrace=false -Dclirr.skip=true -Denforcer.skip=true \
38+
-Dmaven.main.skip=true -fae verify
39+
env:
40+
JOB_TYPE: test
41+
SPANNER_EMULATOR_HOST: localhost:9010
42+
GOOGLE_CLOUD_SPANNER_ENABLE_MULTIPLEXED_SESSIONS: true

0 commit comments

Comments
 (0)