File tree Expand file tree Collapse file tree 2 files changed +40
-12
lines changed Expand file tree Collapse file tree 2 files changed +40
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Build with Maven
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ build :
12
+ strategy :
13
+ matrix :
14
+ platform : [ ubuntu-latest ]
15
+ java-version : [ 1.8 ]
16
+
17
+ runs-on : ${{ matrix.platform }}
18
+ env :
19
+ PLATFORM : ${{ matrix.platform }}
20
+ JAVA_VERSION : ${{ matrix.java-version }}
21
+
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ - name : Set up JDK
25
+ uses : actions/setup-java@v1
26
+ with :
27
+ java-version : ${{ matrix.java-version }}
28
+ - name : Cache local Maven repository
29
+ uses : actions/cache@v2
30
+ with :
31
+ path : ~/.m2/repository
32
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
33
+ restore-keys : |
34
+ ${{ runner.os }}-maven-
35
+ - name : Build with Maven
36
+ run : mvn clean install --batch-mode --file pom.xml
37
+ - name : Send data to Codecov
38
+ uses : codecov/codecov-action@v1
39
+ with :
40
+ env_vars : PLATFORM, JAVA_VERSION
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments