mirror of
https://github.com/danbulant/robotparser-rs
synced 2026-05-19 04:18:42 +00:00
Add support coverage via codecov + tarpaulin (#31)
* workflows: add support coverage Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com> * workflows: use HOME instead of '~' for fix macos cache build Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
This commit is contained in:
parent
230c4201ca
commit
abcb18dc97
2 changed files with 24 additions and 2 deletions
25
.github/workflows/workflow.yml
vendored
25
.github/workflows/workflow.yml
vendored
|
|
@ -45,6 +45,27 @@ jobs:
|
|||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --all-targets --all-features -- -D clippy::all
|
||||
|
||||
coverage:
|
||||
name: Tarpaulin [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
|
||||
- name: Upload to codecov.io
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
token: ${{secrets.CODECOV_TOKEN}}
|
||||
- name: Archive code coverage results
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: code-coverage-report
|
||||
path: cobertura.xml
|
||||
|
||||
# Run a security audit on dependencies
|
||||
cargo_audit:
|
||||
name: Cargo Audit [Security]
|
||||
|
|
@ -99,13 +120,13 @@ jobs:
|
|||
- name: Cache cargo registry
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.cargo/registry
|
||||
path: $HOME/.cargo/registry
|
||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Cache cargo index
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.cargo/git
|
||||
path: $HOME/.cargo/git
|
||||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Cache cargo build
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
[](https://github.com/messense/robotparser-rs/actions?query=workflow%3ACI)
|
||||
[](https://coveralls.io/r/messense/robotparser-rs)
|
||||
[](https://codecov.io/gh/messense/robotparser-rs)
|
||||
[](https://crates.io/crates/robotparser)
|
||||
[](https://deps.rs/repo/github/messense/robotparser-rs)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue