File tree 1 file changed +58
-0
lines changed
1 file changed +58
-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 : Install tools
30
+ run : |
31
+ sudo apt-get update
32
+ sudo apt-get install linux-tools-generic valgrind
33
+ sudo locale-gen en_US.UTF-8
34
+ sudo update-locale LANG=en_US.UTF-8
35
+ - name : Set up Java
36
+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
37
+ with :
38
+ java-version : 21
39
+ mvn-toolchain-id : JavaSE-21
40
+ distribution : ' temurin'
41
+ cache : maven
42
+ - name : Set up Maven
43
+ uses : stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
44
+ with :
45
+ maven-version : 3.9.9
46
+ - name : Build with Maven
47
+ run : >-
48
+ ${{ 'xvfb-run' }}
49
+ mvn clean verify
50
+ - name : Upload Test Results
51
+ if : always()
52
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
53
+ with :
54
+ name : test-results
55
+ if-no-files-found : warn
56
+ path : |
57
+ ${{ github.workspace }}/**/target/surefire-reports/*.xml
58
+ ${{ github.workspace }}/**/results/**/*.png
You can’t perform that action at this time.
0 commit comments