We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8adf373 commit 3ca5921Copy full SHA for 3ca5921
1 file changed
.github/workflows/build.yaml
@@ -13,6 +13,9 @@ on:
13
jobs:
14
build:
15
runs-on: ubuntu-latest
16
+ permissions:
17
+ contents: read
18
+ checks: write
19
20
env:
21
MAVEN_OPTS: -Xmx2g
@@ -32,19 +35,19 @@ jobs:
32
35
run: |
33
36
mvn test \
34
37
--batch-mode \
- --fail-at-end \
- -Dsurefire.useFile=false
38
+ --fail-at-end
39
+
40
+ - name: Report test results
41
+ uses: dorny/test-reporter@v1
42
+ if: always()
43
+ with:
44
+ name: Maven Tests
45
+ path: "**/target/surefire-reports/*.xml"
46
+ reporter: java-junit
47
+ fail-on-error: "false"
48
49
- name: Build project
50
51
mvn package \
52
53
-DskipTests=true
-
- - name: Upload test results
- if: always()
- uses: actions/upload-artifact@v4
- with:
- name: test-results
- path: '**/target/surefire-reports/*.xml'
- retention-days: 7
0 commit comments