File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3
+
4
+ name : Java CI with Maven
5
+
6
+ on :
7
+ push :
8
+ branches : [ master ]
9
+ pull_request :
10
+ branches : [ master ]
11
+
12
+ jobs :
13
+ test :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - name : Set up JDK 17
20
+ uses : actions/setup-java@v2
21
+ with :
22
+ java-version : ' 17'
23
+ distribution : ' adopt'
24
+ cache : maven
25
+ - name : Run Tests
26
+ run : mvn -B test --file pom.xml
27
+ build :
28
+
29
+ runs-on : ubuntu-latest
30
+
31
+ steps :
32
+ - uses : actions/checkout@v2
33
+ - name : Set up JDK 17
34
+ uses : actions/setup-java@v2
35
+ with :
36
+ java-version : ' 17'
37
+ distribution : ' adopt'
38
+ cache : maven
39
+ - name : Build Artifacts
40
+ run : mvn -B package --file pom.xml
You can’t perform that action at this time.
0 commit comments