-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathjava-spanner-integration-tests-against-emulator.yaml
More file actions
58 lines (56 loc) · 1.45 KB
/
java-spanner-integration-tests-against-emulator.yaml
File metadata and controls
58 lines (56 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
on:
push:
branches:
- main
pull_request:
name: java-spanner integration-tests-against-emulator
env:
BUILD_SUBDIR: java-spanner
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/**'
units:
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: 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_PROJECT: emulator-test-project