coverage #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: coverage | |
on: | |
workflow_run: | |
workflows: | |
- ci | |
branches: | |
- main | |
types: | |
- completed | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
# Cache cargo registry, index, and build directories | |
- name: Cache cargo | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo | |
key: cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: install tarpaulin | |
run: cargo install cargo-tarpaulin | |
- name: coverage | |
run: cargo tarpaulin --engine llvm --follow-exec --post-test-delay 10 --coveralls ${{ secrets.COVERALLS_TOKEN }} |