File tree Expand file tree Collapse file tree 2 files changed +21
-14
lines changed Expand file tree Collapse file tree 2 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 11# This workflow will build a Java project with Maven
22# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
33
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
115
6+ on : [push, pull_request]
7+
128jobs :
13- build :
9+ compile :
1410 runs-on : ubuntu-latest
11+
12+ strategy :
13+ matrix :
14+ java : [ 8, 11, 12, 13 ]
15+
16+ name : Java ${{ matrix.java }} compile
1517 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
1822 uses : actions/setup-java@v2
1923 with :
20- java-version : ' 8'
2124 distribution : ' adopt'
25+ java-package : jdk
26+ java-version : ${{ matrix.java }}
27+
2228 - name : Cache Maven packages
2329 uses : actions/cache@v2
2430 with :
2531 path : ~/.m2
2632 key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
2733 restore-keys : ${{ runner.os }}-m2
28- - name : Build with Maven
29- run : mvn -B package --file pom.xml
34+
35+ - name : Build with maven
36+ run : mvn -B test
Original file line number Diff line number Diff line change 166166 <plugin >
167167 <groupId >org.jacoco</groupId >
168168 <artifactId >jacoco-maven-plugin</artifactId >
169- <version >0.8.2 </version >
169+ <version >0.8.6 </version >
170170 <executions >
171171 <execution >
172172 <id >prepare-agent</id >
You can’t perform that action at this time.
0 commit comments