Skip to content

Commit a8e05ac

Browse files
committed
test-ci: updated matrix to use ubuntu-22.04
1 parent 09fb476 commit a8e05ac

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/master-2.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
java: ['11', '17', '21']
38-
os: [ubuntu-latest, windows-latest]
38+
os: [ubuntu-22.04, windows-latest]
3939
runs-on: ${{ matrix.os }}
4040

4141
steps:
@@ -46,10 +46,16 @@ jobs:
4646
with:
4747
distribution: 'temurin'
4848
java-version: ${{ matrix.java }}
49-
cache: maven
5049

5150
- name: Show Versions
5251
run: mvn -version
5352

53+
- name: Cache Maven packages
54+
uses: actions/cache@v4
55+
with:
56+
path: ~/.m2/repository
57+
key: ${{ runner.os }}-m2-${{ matrix.java }}
58+
restore-keys: ${{ runner.os }}-m2-
59+
5460
- name: Build/Test
55-
run: mvn -B clean verify -Pcoverage
61+
run: mvn -B clean package

.github/workflows/master.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
java: ['8', '11', '17', '21']
38-
os: [ubuntu-latest, windows-latest]
38+
os: [ubuntu-22.04, windows-latest]
3939
runs-on: ${{ matrix.os }}
4040

4141
steps:
@@ -46,7 +46,6 @@ jobs:
4646
with:
4747
distribution: 'temurin'
4848
java-version: ${{ matrix.java }}
49-
cache: maven
5049

5150
- name: Show Versions
5251
run: mvn -version
@@ -59,4 +58,4 @@ jobs:
5958
restore-keys: ${{ runner.os }}-m2-
6059

6160
- name: Build/Test
62-
run: mvn -B clean verify
61+
run: mvn -B clean package

0 commit comments

Comments
 (0)