Break test and coverage test into separate jobs (#949)

This commit is contained in:
Andrew Lamb 2023-08-22 08:32:14 -04:00 committed by GitHub
parent b8a58bbc11
commit 9c2e8bcdbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,11 +75,25 @@ jobs:
uses: actions/checkout@v2
- name: Test
run: cargo test --all-features
test-coverage:
runs-on: ubuntu-latest
steps:
- name: Setup Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- name: Install Tarpaulin
uses: actions-rs/install@v0.1
with:
crate: cargo-tarpaulin
version: 0.14.2
use-tool-cache: true
- name: Checkout
uses: actions/checkout@v2
- name: Coverage
if: matrix.rust == 'stable'
run: cargo tarpaulin -o Lcov --output-dir ./coverage
- name: Coveralls
if: matrix.rust == 'stable'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}