File tree 2 files changed +20
-6
lines changed
2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -22,29 +22,38 @@ jobs:
22
22
name : OS ${{ matrix.os }} Java ${{ matrix.java }} compile
23
23
timeout-minutes : 90
24
24
steps :
25
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
25
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
26
with :
27
27
fetch-depth : 0
28
28
- name : Set up JDK 17/21
29
- uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00
29
+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
30
30
with :
31
31
distribution : ' temurin' # See 'Supported distributions' for available options
32
32
java-version : ${{ matrix.java }}
33
33
cache : ' maven'
34
34
- name : Set up Maven
35
- uses : stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1
35
+ uses : stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
36
36
with :
37
37
maven-version : 3.9.2
38
38
- name : Build with Maven
39
- uses : coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3
39
+ uses : coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # v1.0.1
40
40
with :
41
41
run : >-
42
42
mvn -V -B -fae -ntp clean verify
43
43
- name : Upload Test Results for Java-${{ matrix.java }}
44
- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
44
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
45
45
if : always()
46
46
with :
47
47
name : test-results-${{ matrix.os }}-java${{ matrix.java }}
48
48
if-no-files-found : error
49
49
path : |
50
50
${{ github.workspace }}/**/target/surefire-reports/*.xml
51
+ event_file :
52
+ name : " Upload Event File"
53
+ runs-on : ubuntu-latest
54
+ steps :
55
+ - name : Upload
56
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
57
+ with :
58
+ name : Event File
59
+ path : ${{ github.event_path }}
Original file line number Diff line number Diff line change 15
15
permissions :
16
16
checks : write
17
17
pull-requests : write
18
+ contents : read
19
+ issues : read
20
+ actions : read
18
21
19
22
steps :
20
23
- name : Download and Extract Artifacts
33
36
done
34
37
35
38
- name : Publish Unit Test Results
36
- uses : EnricoMi/publish-unit-test-result-action@afb2984f4d89672b2f9d9c13ae23d53779671984
39
+ uses : EnricoMi/publish-unit-test-result-action@afb2984f4d89672b2f9d9c13ae23d53779671984 # v2.19.0
37
40
with :
38
41
commit : ${{ github.event.workflow_run.head_sha }}
42
+ event_file : artifacts/Event File/event.json
43
+ event_name : ${{ github.event.workflow_run.event }}
39
44
files : " artifacts/**/*.xml"
40
45
41
46
You can’t perform that action at this time.
0 commit comments