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