Skip to content

Commit 48f2999

Browse files
committed
code coverage
1 parent 3d0de14 commit 48f2999

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

Diff for: .github/workflows/demo-workflow.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,19 @@ jobs:
3030
- name: Build with Maven
3131
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
3232

33-
- uses: codecov/codecov-action@v1
34-
with:
35-
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
36-
file: ./coverage.xml # optional
37-
flags: unittests # optional
38-
name: codecov-umbrella # optional
39-
fail_ci_if_error: true # optional (default = false)
33+
- name: generate report codecov
34+
run: mvn cobertura:cobertura
35+
36+
- name: generate report codecov
37+
run: mvn cobertura:cobertura
38+
39+
- name: Upload coverage
40+
if: success()
41+
run: |
42+
curl -s https://codecov.io/bash | bash
43+
env:
44+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
45+
shell: bash
4046

4147
- name: Upload Maven build artifact
4248
uses: actions/upload-artifact@v1

0 commit comments

Comments
 (0)