Skip to content

Commit 50c0458

Browse files
committed
ci: simplify matrix on test job using include instead of exclude
1 parent 972f1db commit 50c0458

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,13 @@ jobs:
3939
name: test ${{ matrix.os }} jdk${{ matrix.java }}
4040
strategy:
4141
matrix:
42-
os: [ ubuntu-latest, windows-latest, macos-latest ]
43-
java: [ 8, 11, 17 ]
44-
exclude:
42+
os: [ ubuntu-latest ]
43+
java: [ 8, 17, 18 ]
44+
include:
4545
- os: windows-latest
46-
java: 11
47-
- os: windows-latest
48-
java: 8
49-
- os: macos-latest
50-
java: 11
46+
java: 18
5147
- os: macos-latest
52-
java: 8
48+
java: 18
5349
runs-on: ${{ matrix.os }}
5450
steps:
5551
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)