Skip to content

coverage

coverage #101

Workflow file for this run

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