File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,14 +7,34 @@ on: [push]
77jobs :
88 build :
99 runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ java : [1.8, 11]
1013 steps :
1114 - name : Checkout sources
1215 uses : actions/checkout@v2
1316
14- - name : Set up JDK 1.8
17+ - name : Set up JDK
1518 uses : actions/setup-java@v1
1619 with :
17- java-version : 1.8
20+ java-version : ${{ matrix.java }}
1821
19- - name : Build with Maven
22+ - name : Build
2023 run : mvn -B package
24+
25+ coverage :
26+ runs-on : ubuntu-latest
27+ steps :
28+ - name : Checkout sources
29+ uses : actions/checkout@v2
30+
31+ - name : Set up JDK
32+ uses : actions/setup-java@v1
33+ with :
34+ java-version : 1.8
35+
36+ - name : Build with coverage
37+ run : mvn -B -Pcoverage clean test jacoco:report-aggregate
38+
39+ - name : Publish coverage
40+ uses : codecov/codecov-action@v1
Original file line number Diff line number Diff line change @@ -22,10 +22,3 @@ matrix:
2222script :
2323 - ' if [ $TEST = java ]; then mvn test -Dsurefire.useFile=false; fi'
2424 - ' if [ $TEST = android ]; then mvn install -DskipTests && cd commonmark-android-test && travis_retry ./.travis.sh; fi'
25-
26- after_success : |
27- if [ $TRAVIS_JDK_VERSION = oraclejdk8 ] && [ $TEST = java ]; then
28- # Calculate test coverage
29- mvn clean test jacoco:report-aggregate -Pcoverage
30- bash <(curl -s https://codecov.io/bash)
31- fi
You can’t perform that action at this time.
0 commit comments