feat: 2.1.0 #436
Workflow file for this run
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: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
coverage: | |
name: Generate coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-llvm-cov | |
- name: Run tests | |
run: cargo llvm-cov --no-fail-fast --no-default-features --features derive,serialize,crossterm --workspace --lcov --output-path lcov.info | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2.3.6 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
file: lcov.info | |
# currently we only run one coverage report per build | |
parallel: false |