File tree Expand file tree Collapse file tree 5 files changed +44
-16
lines changed Expand file tree Collapse file tree 5 files changed +44
-16
lines changed Original file line number Diff line number Diff line change 1+ comment :
2+ layout : " diff, flags, files"
Original file line number Diff line number Diff line change 1+ # See https://docs.github.com/en/actions/language-and-framework-guides/building-and-testing-java-with-maven
2+
3+ name : ci
4+
5+ on : [push]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ java : [1.8, 11]
13+ steps :
14+ - name : Checkout sources
15+ uses : actions/checkout@v2
16+
17+ - name : Set up JDK
18+ uses : actions/setup-java@v1
19+ with :
20+ java-version : ${{ matrix.java }}
21+
22+ - name : Build
23+ 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
38+
39+ - name : Publish coverage
40+ uses : codecov/codecov-action@v1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ for other build systems):
2525</dependency >
2626```
2727
28- [ ![ Build status ] ( https://travis-ci.org /robinst/autolink-java.svg?branch=master )] ( https://travis-ci.org /robinst/autolink-java )
29- [ ![ Coverage status] ( https://coveralls .io/repos/github/ robinst/autolink-java/badge.svg?branch=master )] ( https://coveralls .io/github /robinst/autolink-java?branch=master )
28+ [ ![ ci ] ( https://github.com /robinst/autolink-java/workflows/ci/badge .svg )] ( https://github.com /robinst/autolink-java/actions?query=workflow%3Aci )
29+ [ ![ Coverage status] ( https://codecov .io/gh/ robinst/autolink-java/branch/main/graph/ badge.svg )] ( https://codecov .io/gh /robinst/autolink-java )
3030[ ![ Maven Central status] ( https://img.shields.io/maven-central/v/org.nibor.autolink/autolink.svg )] ( https://search.maven.org/search?q=g:org.nibor.autolink%20AND%20a:autolink&core=gav )
3131
3232
Original file line number Diff line number Diff line change 149149 </execution >
150150 </executions >
151151 </plugin >
152- <plugin >
153- <groupId >org.eluder.coveralls</groupId >
154- <artifactId >coveralls-maven-plugin</artifactId >
155- <version >4.3.0</version >
156- </plugin >
157152 </plugins >
158153 </build >
159154 </profile >
You can’t perform that action at this time.
0 commit comments