Skip to content

Commit

Permalink
Upload coverage on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor authored Mar 17, 2020
1 parent 0d958fa commit 5548c57
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,14 @@ jobs:
args: --package=awc --no-default-features --features=rustls -- --nocapture

- name: Generate coverage file
if: matrix.version == 'stable' && github.ref == 'refs/heads/master'
if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'pull_request')
run: |
cargo install cargo-tarpaulin
cargo tarpaulin --out Xml
- name: Upload to Codecov
if: matrix.version == 'stable' && github.ref == 'refs/heads/master'
if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'pull_request')
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: cobertura.xml

- name: Clear the cargo caches
Expand Down

0 comments on commit 5548c57

Please sign in to comment.