File tree 2 files changed +20
-13
lines changed
2 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 1
1
# This workflow will build a Java project with Maven
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3
3
4
- name : Build
5
-
6
- on :
7
- push :
8
- branches : [ $default-branch ]
9
- pull_request :
10
- branches : [ $default-branch ]
4
+ name : Java CI with Maven
11
5
6
+ on : [push, pull_request]
7
+
12
8
jobs :
13
- build :
9
+ compile :
14
10
runs-on : ubuntu-latest
11
+
12
+ strategy :
13
+ matrix :
14
+ java : [ 8, 11, 12, 13 ]
15
+
16
+ name : Java ${{ matrix.java }} compile
15
17
steps :
16
- - uses : actions/checkout@v2
17
- - name : Set up JDK 8
18
+ - name : Checkout Source Code
19
+ uses : actions/checkout@v2
20
+
21
+ - name : Setup Java
18
22
uses : actions/setup-java@v2
19
23
with :
20
- java-version : ' 8'
21
24
distribution : ' adopt'
25
+ java-package : jdk
26
+ java-version : ${{ matrix.java }}
27
+
22
28
- name : Cache Maven packages
23
29
uses : actions/cache@v2
24
30
with :
25
31
path : ~/.m2
26
32
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
27
33
restore-keys : ${{ runner.os }}-m2
28
- - name : Build with Maven
34
+
35
+ - name : Build with maven
29
36
run : mvn -B package --file pom.xml
Original file line number Diff line number Diff line change 166
166
<plugin >
167
167
<groupId >org.jacoco</groupId >
168
168
<artifactId >jacoco-maven-plugin</artifactId >
169
- <version >0.8.2 </version >
169
+ <version >0.8.6 </version >
170
170
<executions >
171
171
<execution >
172
172
<id >prepare-agent</id >
You can’t perform that action at this time.
0 commit comments