-
Notifications
You must be signed in to change notification settings - Fork 122
50 lines (49 loc) · 1.25 KB
/
samples.yaml
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
on:
pull_request:
name: samples
jobs:
checkstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v1
with:
java-version: 8
- name: Run checkstyle
run: mvn -P lint --quiet --batch-mode checkstyle:check
working-directory: samples/snippets
compile-java8:
name: "compile (8)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
# Java 11 to generate class file targeting Java 8
java-version: 11
distribution: temurin
- name: Compile Spanner
run: mvn clean install -Dclirr.skip=true
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
- name: Compile samples
run: mvn compile
working-directory: samples
compile:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 17]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: ${{matrix.java}}
distribution: temurin
- name: Compile Spanner
run: mvn clean install -Dclirr.skip=true
- name: Compile samples
run: mvn compile
working-directory: samples