Skip to content

Commit 4f3509e

Browse files
Switch to codecov instead of coveralls due to github actions.
1 parent ec25998 commit 4f3509e

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/gradle.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@ on:
1010
branches: [ master ]
1111

1212
jobs:
13-
build:
14-
13+
build-jdk:
1514
runs-on: ubuntu-latest
16-
15+
strategy:
16+
matrix:
17+
# Use both LTS releases and latest one
18+
jdk: [ 8, 13 ]
1719
steps:
18-
- uses: actions/checkout@v2
19-
- name: Set up OpenJDK 13
20+
- name: Checkout repo
21+
uses: actions/checkout@v2
22+
- name: Set up OpenJDK
2023
uses: actions/setup-java@v1
2124
with:
22-
java-version: 13
25+
java-version: ${{ matrix.jdk }}
2326
- name: Pull elasticsearch image from docker
2427
run: docker pull elasticsearch:7.9.3
2528
- name: Create and run elasticsearch container
@@ -34,6 +37,8 @@ jobs:
3437
run: chmod +x gradlew
3538
- name: Build with Gradle
3639
run: ./gradlew -Ptravis clean check jacocoTestReport
37-
- name: Coverall
38-
run: ./gradlew coveralls
40+
- name: Codecov
41+
uses: codecov/codecov-action@v1
42+
with:
43+
files: ./build/reports/jacoco/test/jacocoTestReport.xml #optional
3944

0 commit comments

Comments
 (0)