Skip to content

Commit 94a1540

Browse files
cushongoogle-java-format Team
authored andcommitted
Refactor google-java-format CI
Only test with 15 on windows and macos PiperOrigin-RevId: 349787620
1 parent 0a2f864 commit 94a1540

File tree

1 file changed

+15
-26
lines changed

1 file changed

+15
-26
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,23 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
os: [ ubuntu-latest, macos-latest, windows-latest ]
25+
os: [ ubuntu-latest ]
2626
java: [ 15, 11 ]
27+
experimental: [ false ]
28+
include:
29+
# Only test on macos and windows with a single recent JDK to avoid a
30+
# combinatorial explosion of test configurations.
31+
- os: macos-latest
32+
java: 15
33+
experimental: false
34+
- os: windows-latest
35+
java: 15
36+
experimental: false
37+
- os: ubuntu-latest
38+
java: 16-ea
39+
experimental: true
2740
runs-on: ${{ matrix.os }}
41+
continue-on-error: ${{ matrix.experimental }}
2842
steps:
2943
- name: 'Check out repository'
3044
uses: actions/checkout@v2
@@ -46,31 +60,6 @@ jobs:
4660
shell: bash
4761
run: mvn test -B
4862

49-
early_access:
50-
name: 'JDK Early-Access'
51-
continue-on-error: true
52-
runs-on: ubuntu-latest
53-
steps:
54-
- name: 'Check out repository'
55-
uses: actions/checkout@v2
56-
- name: 'Cache local Maven repository'
57-
uses: actions/cache@v2
58-
with:
59-
path: ~/.m2/repository
60-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
61-
restore-keys: |
62-
${{ runner.os }}-maven-
63-
- name: 'Set up JDK ${{ matrix.java }}'
64-
uses: actions/setup-java@v1
65-
with:
66-
java-version: 16-ea
67-
- name: 'Install'
68-
shell: bash
69-
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
70-
- name: 'Test'
71-
shell: bash
72-
run: mvn test -B
73-
7463
publish_snapshot:
7564
name: 'Publish snapshot'
7665
needs: test

0 commit comments

Comments
 (0)