From de374afbca7d33a1d5f25d2fd0e02701da3947f2 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Wed, 18 Mar 2020 04:19:15 +0900 Subject: [PATCH] Revert "Disable coverage for PRs" (#25) * Revert "Disable coverage for PRs" * Remove `token` arg --- .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 b268a3f21..a95eac7ee 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -65,16 +65,15 @@ jobs: args: --all --all-features --no-fail-fast -- --nocapture - name: Generate coverage file - if: matrix.version == 'stable' && github.ref == 'refs/heads/master' + if: matrix.version == 'stable' && (github.ref == 'master' || github.event_name == 'pull_request') run: | cargo install cargo-tarpaulin cargo tarpaulin --out Xml --workspace --all-features - name: Upload to Codecov - if: matrix.version == 'stable' && github.ref == 'refs/heads/master' + if: matrix.version == 'stable' && (github.ref == 'master' || github.event_name == 'pull_request') uses: codecov/codecov-action@v1 with: - token: ${{ secrets.CODECOV_TOKEN }} file: cobertura.xml - name: Clear the cargo caches