fix grcov

This commit is contained in:
Ivan Folgueira Bande 2025-10-05 19:11:20 +02:00
parent 0e5f7075b1
commit 8b2a01082d
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7

View File

@ -16,9 +16,10 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- name: Add llvm-tools-preview component
run: rustup component add llvm-tools-preview
- name: Checkout submodules
run: git submodule update --init --recursive
- uses: actions-rs/toolchain@v1
with:
profile: minimal
@ -27,16 +28,12 @@ jobs:
components: llvm-tools-preview
- uses: actions-rs/cargo@v1
continue-on-error: true
- name: Install cargo-binstall
run: cargo install cargo-binstall
- run: |
cargo binstall -y grcov;
cargo test --all-features;
cargo test discv5_echo -- --ignored;
cargo test default_echo -- --ignored;
- name: Run Grcov
run: |
rm -rf /tmp/cov;
cargo binstall -y grcov;
mkdir /tmp/cov;
grcov . --binary-path ./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: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}