File tree 1 file changed +54
-0
lines changed
1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Maven Build
2
+ on :
3
+ push :
4
+ branches : [ master ]
5
+ pull_request :
6
+ branches : [ master ]
7
+ permissions : {}
8
+
9
+ env :
10
+ MAVEN_ARGS : >-
11
+ --batch-mode --no-transfer-progress
12
+
13
+ jobs :
14
+ event_file :
15
+ name : " Upload Event File"
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Upload
19
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
20
+ with :
21
+ name : Event File
22
+ path : ${{ github.event_path }}
23
+ build :
24
+ runs-on : ubuntu-latest
25
+ name : Verify
26
+ steps :
27
+ - name : Checkout
28
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29
+ - name : Set up Java
30
+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
31
+ with :
32
+ java-version : 21
33
+ mvn-toolchain-id : JavaSE-21
34
+ distribution : ' temurin'
35
+ cache : maven
36
+ - name : Set up Maven
37
+ uses : stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
38
+ with :
39
+ maven-version : 3.9.9
40
+
41
+ - name : Build with Maven
42
+ run : >-
43
+ ${{ 'xvfb-run' }}
44
+ mvn --show-version --update-snapshots --errors
45
+ ${{ inputs.maven-goals }}
46
+ - name : Upload Test Results
47
+ if : always()
48
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
49
+ with :
50
+ name : test-results
51
+ if-no-files-found : warn
52
+ path : |
53
+ ${{ github.workspace }}/**/target/surefire-reports/*.xml
54
+ ${{ github.workspace }}/**/results/**/*.png
You can’t perform that action at this time.
0 commit comments