Skip to content

Commit e1965b8

Browse files
authored
ci: report coverage to codecov (#59)
1 parent bbe2838 commit e1965b8

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ on:
88
types: [opened]
99

1010
jobs:
11-
unit:
12-
runs-on: ubuntu-latest
11+
unit:
12+
runs-on: ubuntu-latest
1313

14-
steps:
15-
- uses: actions/checkout@v1
16-
- name: Set up JDK 1.8
17-
uses: actions/setup-java@v1
18-
with:
19-
java-version: 1.8
20-
- name: Install
21-
run: gradle dependencies
22-
- name: Test
23-
run: gradle test
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Set up JDK 1.8
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 1.8
20+
- name: Install
21+
run: gradle dependencies
22+
- name: Test
23+
run: gradle test && gradle jacocoTestReport
24+
- name: Codecov
25+
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)