Skip to content

Commit 358a1f2

Browse files
committed
Switch from Travis to GitHub actions
And from coveralls to codecov.
1 parent 1adfd0a commit 358a1f2

File tree

4 files changed

+42
-16
lines changed

4 files changed

+42
-16
lines changed

.github/workflows/ci.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

.travis.yml

-9
This file was deleted.

README.md

+2-2
Original file line numberDiff line numberDiff 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

pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,6 @@
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>

0 commit comments

Comments
 (0)