Adjust coverage job to only trigger on changes to *.rs files

Moves it to its own workflow. Also pulls in latest tarpaulin release every time. 🤞
This commit is contained in:
Deirdre Connolly 2020-07-02 15:12:58 -04:00 committed by Deirdre Connolly
parent 5ee48a6675
commit a267030d7b
2 changed files with 27 additions and 17 deletions

27
.github/workflows/coverage.yml vendored Normal file
View File

@ -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

View File

@ -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