Skip to content

Commit 86beaa9

Browse files
committed
updated github actions with latest versions and permissions
1 parent f8d79e3 commit 86beaa9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/maven.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- master
1010
- issue-*
1111

12+
permissions:
13+
contents: write
14+
1215
jobs:
1316
build_and_test:
1417
name: Build and Test
@@ -21,7 +24,7 @@ jobs:
2124
- name: Install Java and Maven
2225
uses: actions/setup-java@v4
2326
with:
24-
java-version: '17'
27+
java-version: '21'
2528
distribution: 'adopt'
2629
cache: maven
2730

@@ -54,7 +57,7 @@ jobs:
5457
- name: Install Java and Maven
5558
uses: actions/setup-java@v4
5659
with:
57-
java-version: '17'
60+
java-version: '21'
5861
distribution: 'adopt'
5962
cache: maven
6063

@@ -86,10 +89,9 @@ jobs:
8689
mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
8790
-Dsonar.projectKey=$SONAR_KEY
8891
- name: Test Report
89-
uses: dorny/test-reporter@v1
92+
uses: dorny/test-reporter@v2
9093
if: success() || failure()
9194
with:
9295
name: Test Results
9396
path: ${{ github.workspace }}/target/surefire-reports/TEST-TestSuite.xml
94-
reporter: java-junit
95-
java-version: 17
97+
reporter: java-junit

0 commit comments

Comments
 (0)