1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-30 18:44:35 +01:00

Disable coverage for PRs

This commit is contained in:
Yuki Okushi 2020-02-14 07:31:29 +09:00
parent 7b00c16d44
commit ad0d809af6
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1

View File

@ -73,12 +73,12 @@ jobs:
args: --package=awc --no-default-features --features=rustls -- --nocapture args: --package=awc --no-default-features --features=rustls -- --nocapture
- name: Generate coverage file - name: Generate coverage file
if: matrix.version == 'stable' && (github.ref == 'master' || github.event_name == 'pull_request') if: matrix.version == 'stable' && github.ref == 'refs/heads/master'
run: | run: |
cargo install cargo-tarpaulin cargo install cargo-tarpaulin
cargo tarpaulin --out Xml cargo tarpaulin --out Xml
- name: Upload to Codecov - name: Upload to Codecov
if: matrix.version == 'stable' && (github.ref == 'master' || github.event_name == 'pull_request') if: matrix.version == 'stable' && github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v1 uses: codecov/codecov-action@v1
with: with:
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}