Skip to content

Commit e08e826

Browse files
committed
Upgrade github action
1 parent 8e1e1d0 commit e08e826

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: .github/workflows/maven.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,24 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
os: [ubuntu-latest, windows-latest ]
23-
java: ['1.8', '11']
23+
java: ['8', '11']
2424

2525
steps:
26-
- uses: actions/checkout@v2
27-
- uses: actions/cache@v1
26+
- uses: actions/checkout@v4
27+
- uses: actions/cache@v4
2828
with:
2929
path: ~/.m2/repository
3030
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3131
restore-keys: |
3232
${{ runner.os }}-maven-
3333
- name: Set up JDK ${{ matrix.java }}
34-
uses: actions/setup-java@v1
34+
uses: actions/setup-java@v3
3535
with:
3636
java-version: ${{ matrix.java }}
37+
distribution: 'temurin'
3738
- name: Build with Maven Java ${{ matrix.java }}
3839
run: mvn -s .m2-settings.xml -B -fae clean install
39-
- uses: actions/upload-artifact@v2
40+
- uses: actions/upload-artifact@v4
4041
if: failure()
4142
with:
4243
name: surefire-reports-${{ matrix.os }}-${{ matrix.java }}

0 commit comments

Comments
 (0)