Skip to content

Commit 9c2e8bc

Browse files
authored
Break test and coverage test into separate jobs (#949)
1 parent b8a58bb commit 9c2e8bc

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/rust.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,25 @@ jobs:
7575
uses: actions/checkout@v2
7676
- name: Test
7777
run: cargo test --all-features
78+
79+
test-coverage:
80+
runs-on: ubuntu-latest
81+
steps:
82+
- name: Setup Rust
83+
uses: hecrj/setup-rust-action@v1
84+
with:
85+
rust-version: stable
86+
- name: Install Tarpaulin
87+
uses: actions-rs/[email protected]
88+
with:
89+
crate: cargo-tarpaulin
90+
version: 0.14.2
91+
use-tool-cache: true
92+
- name: Checkout
93+
uses: actions/checkout@v2
7894
- name: Coverage
79-
if: matrix.rust == 'stable'
8095
run: cargo tarpaulin -o Lcov --output-dir ./coverage
8196
- name: Coveralls
82-
if: matrix.rust == 'stable'
8397
uses: coverallsapp/github-action@master
8498
with:
8599
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)