From 5548c57a098a5f68ee27ecdda1de51a2d0b54f6e Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Wed, 18 Mar 2020 05:04:30 +0900 Subject: [PATCH] Upload coverage on PRs --- .github/workflows/linux.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 7cabb802..ec542304 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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