Skip to content

Commit

Permalink
fix: libp2p feature only
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzac committed Sep 17, 2024
1 parent d03c63b commit 940091a
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/my_codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ name: My Codecov 3

jobs:
tests:
strategy:
fail-fast: false
matrix:
feature: [ libp2p ]
env:
RUSTFLAGS: -C instrument-coverage
CARGO_INCREMENTAL: 0
Expand Down Expand Up @@ -43,31 +39,20 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --all --no-default-features --features ${{ matrix.feature }}
args: --all --no-default-features --features libp2p
- 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: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: test-data-${{ matrix.feature }}
path: ./target/debug
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: /tmp/target/debug
pattern: test-data-*
merge-multiple: true
args: --all --no-default-features --features libp2p
- name: Run Grcov
run: |
cargo install grcov;
mkdir /tmp/cov;
grcov . --binary-path /tmp/target/debug -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov;
grcov . --binary-path ./target/debug -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov;
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down

0 comments on commit 940091a

Please sign in to comment.