Upload coverage to Codecov

This commit is contained in:
bwcx_jzy 2022-03-03 10:50:32 +08:00
parent 5df58cb4ee
commit cd705f266e
No known key found for this signature in database
GPG Key ID: 5E48E9372088B9E5
2 changed files with 18 additions and 3 deletions

17
.github/workflows/codecov.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: codecov
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

View File

@ -35,9 +35,7 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package && mvn cobertura:cobertura
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
run: mvn -B package
#file: ./zhuzhu-project/target/site/jacoco/jacoco.xml
# run: |
# docker buildx create --use