Skip to content

Commit a0f6f63

Browse files
authored
Update CI (#280)
Add Java21 to matrix, set up concurrency (and drop use of deprecated action). Update invoker as well.
1 parent f7245ea commit a0f6f63

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,16 @@ on:
66
- master
77
pull_request:
88

9-
jobs:
10-
setup:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Stop old builds
14-
if: github.ref != 'refs/heads/master'
15-
uses: styfle/cancel-workflow-action@0.11.0
16-
with:
17-
access_token: ${{ github.token }}
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
1812

13+
jobs:
1914
build:
20-
needs: setup
2115
strategy:
2216
matrix:
23-
java: [ 8, 11, 17 ]
17+
java: [ 8, 11, 17, 21 ]
18+
fail-fast: false
2419
runs-on: ubuntu-latest
2520
steps:
2621
- uses: actions/checkout@v3
@@ -30,4 +25,5 @@ jobs:
3025
java-version: ${{ matrix.java }}
3126
distribution: 'temurin'
3227
- name: Build & Test
33-
run: ./mvnw -B verify
28+
run: ./mvnw -B clean verify
29+

pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,10 @@
223223
<plugins>
224224
<plugin>
225225
<artifactId>maven-invoker-plugin</artifactId>
226-
<version>3.4.0</version>
226+
<version>3.6.0</version>
227+
<configuration>
228+
<scope>test</scope>
229+
</configuration>
227230
</plugin>
228231
<plugin>
229232
<artifactId>maven-release-plugin</artifactId>

0 commit comments

Comments
 (0)