Skip to content

Commit 9ad1e3e

Browse files
authored
Refine platform test matrix (#354)
* Refine platform test matrix * Windows
1 parent 0371b12 commit 9ad1e3e

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.github/workflows/build-common.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,35 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
os:
27-
- macos-latest
28-
- macos-13
2927
- ubuntu-latest
28+
- macos-latest # testing limited to latest Java LTS
29+
- windows-latest # testing limited to latest Java LTS
3030
test-java-version:
3131
- 8
3232
- 11
3333
- 17
3434
- 21
3535
- 25 # renovate(java-version)
36-
# macos-latest drops support for java 8 temurin. Run java 8 on macos-13. Run java 11+ on macos-latest.
3736
exclude:
3837
- os: macos-latest
3938
test-java-version: 8
40-
- os: macos-13
39+
- os: macos-latest
40+
test-java-version: 11
41+
- os: macos-latest
42+
test-java-version: 17
43+
- os: macos-latest
44+
test-java-version: 21
45+
- os: windows-latest
46+
test-java-version: 8
47+
- os: windows-latest
4148
test-java-version: 11
42-
- os: macos-13
49+
- os: windows-latest
4350
test-java-version: 17
44-
- os: macos-13
51+
- os: windows-latest
4552
test-java-version: 21
46-
- os: macos-13
47-
test-java-version: 25 # renovate(java-version)
53+
defaults:
54+
run:
55+
shell: bash # Use bash shell on all OSes for consistency
4856

4957
steps:
5058
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -70,7 +78,7 @@ jobs:
7078
./gradlew
7179
build
7280
-PtestJavaVersion=${{ matrix.test-java-version }}
73-
-Porg.gradle.java.installations.paths=${{ steps.setup-java-test.outputs.path }},${{ steps.setup-java.outputs.path }}
81+
"-Porg.gradle.java.installations.paths=${{ steps.setup-java-test.outputs.path }},${{ steps.setup-java.outputs.path }}"
7482
env:
7583
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
7684
- name: generate

0 commit comments

Comments
 (0)