Skip to content

Commit 08e97ec

Browse files
committed
Make coverage a matrix variable
1 parent 293908b commit 08e97ec

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/cargo-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ubuntu-latest, windows-latest, macos-latest]
20+
include:
21+
- os: ubuntu-latest
22+
coverage: true
2023
steps:
2124
- uses: actions/checkout@v4
2225
- uses: actions-rust-lang/setup-rust-toolchain@v1
2326
with:
2427
toolchain: stable
2528
- run: cargo test --verbose
2629

27-
- if: ${{ matrix.os == 'ubuntu-latest' }}
30+
- if: ${{ matrix.coverage }}
2831
uses: ./.github/actions/codecov
2932
with:
3033
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)