From a267030d7bb4f1d62aeca57d0a551429e15407de Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Thu, 2 Jul 2020 15:12:58 -0400 Subject: [PATCH] Adjust coverage job to only trigger on changes to *.rs files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Moves it to its own workflow. Also pulls in latest tarpaulin release every time. 🤞 --- .github/workflows/coverage.yml | 27 +++++++++++++++++++++++++++ .github/workflows/pr.yml | 17 ----------------- 2 files changed, 27 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 000000000..7ca7ae691 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,27 @@ +name: Coverage + +on: + pull_request: + paths: + - '**.rs' + push: + paths: + - '**.rs' + +jobs: + + codecov: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Run cargo-tarpaulin + uses: actions-rs/tarpaulin@v0.1 + with: + version: 'latest' + timeout: 300 + - name: Upload coverage report to Codecov + uses: codecov/codecov-action@v1.0.10 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4bcd83869..49fcf539a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -35,23 +35,6 @@ jobs: command: build args: --verbose --release - grcov: - name: Code Coverage - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - name: Run cargo-tarpaulin - uses: actions-rs/tarpaulin@v0.1 - with: - version: '0.12.3' - timeout: 300 - - name: Upload coverage report to Codecov - uses: codecov/codecov-action@v1.0.10 - clippy: name: Clippy runs-on: ubuntu-latest