Skip to content

Commit 4daccd3

Browse files
committed
wip
1 parent 18f6a0a commit 4daccd3

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/pr-verify.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,29 @@ jobs:
2020
uses: actions/cache@v4
2121
with:
2222
path: ~/.m2/repository
23-
key: ${{ runner.os }}-jdk${{ matrix.jdk }}-maven-${{ hashFiles('**/pom.xml') }}
23+
key: ${{ runner.os }}-jdk11-maven-${{ hashFiles('**/pom.xml') }}
2424
restore-keys: |
25-
${{ runner.os }}-jdk${{ matrix.jdk }}-maven-
25+
${{ runner.os }}-jdk11-maven-
26+
- name: Check formatting
27+
run: mvn -B formatter:validate impsort:check xml-format:xml-check
28+
- name: Quick compile
29+
run: mvn -B install -DskipTests -Pquick
30+
31+
formatting-and-quick-compile-jdk24:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Set up JDK
36+
uses: actions/setup-java@v1
37+
with:
38+
java-version: 24
39+
- name: Cache local Maven repository
40+
uses: actions/cache@v4
41+
with:
42+
path: ~/.m2/repository
43+
key: ${{ runner.os }}-jdk24-maven-${{ hashFiles('**/pom.xml') }}
44+
restore-keys: |
45+
${{ runner.os }}-jdk24-maven-
2646
- name: Check formatting
2747
run: mvn -B formatter:validate impsort:check xml-format:xml-check
2848
- name: Quick compile
@@ -42,20 +62,20 @@ jobs:
4262
uses: actions/cache@v4
4363
with:
4464
path: ~/.m2/repository
45-
key: ${{ runner.os }}-jdk${{ matrix.jdk }}-maven-${{ hashFiles('**/pom.xml') }}
65+
key: ${{ runner.os }}-jdk11-maven-${{ hashFiles('**/pom.xml') }}
4666
restore-keys: |
47-
${{ runner.os }}-jdk${{ matrix.jdk }}-maven-
67+
${{ runner.os }}-jdk11-maven-
4868
- name: Compile (mvn clean install)
4969
run: mvn -B clean install -DskipTests
5070

5171

5272
build:
53-
needs: formatting-and-quick-compile
73+
needs: [formatting-and-quick-compile, formatting-and-quick-compile-jdk24]
5474
runs-on: ubuntu-latest
5575
strategy:
5676
fail-fast: true
5777
matrix:
58-
jdk: [ 11, 21 ]
78+
jdk: [ 11, 24 ]
5979
steps:
6080
- uses: actions/checkout@v4
6181
- name: Set up JDK

0 commit comments

Comments
 (0)