Skip to content

Commit

Permalink
fix: apply matrix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzac committed Sep 16, 2024
1 parent f541005 commit 2be1f5f
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/my_codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ name: My Codecov 3
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
feature: [ libp2p, "libp2p,mixnet" ]
env:
RUSTFLAGS: -C instrument-coverage
runs-on: ubuntu-latest
Expand All @@ -35,14 +39,19 @@ jobs:
run: cargo binstall -y cargo-risczero && cargo risczero install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- name: Run tests
uses: actions-rs/cargo@v1
env:
RISC0_DEV_MODE: true
CONSENSUS_SLOT_TIME: 5
with:
command: test
args: --all --no-default-features --features ${{ matrix.feature }}
- name: Run Grcov
run: |
cargo binstall -y grcov;
CARGO_INCREMENTAL=0 cargo test --no-default-features --features libp2p
mkdir /tmp/cov;
grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov;
env:
SLOW_TEST_ENV: true
RISC0_DEV_MODE: true
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down

0 comments on commit 2be1f5f

Please sign in to comment.