fix coverage workflow (#736)
* fix coverage workflow * fix action * do not run tests * build binaries * clean before tests * only compile tests * clean dir * remove intermediate artficats
This commit is contained in:
parent
f2dfd468ac
commit
b7865b27ec
|
@ -34,22 +34,12 @@ jobs:
|
|||
run: cargo binstall -y cargo-risczero && cargo risczero install
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --all --no-default-features --features libp2p
|
||||
- uses: actions-rs/cargo@v1
|
||||
run: |
|
||||
mkdir bcp
|
||||
cp ./target/debug/{nomos-cli, nomos-node, rocks} bcp/
|
||||
cargo clean
|
||||
mkdir -p target/debug
|
||||
cp bcp/* ./target/debug/
|
||||
- uses: actions-rs/cargo@v1
|
||||
continue-on-error: true
|
||||
- run: |
|
||||
cargo binstall -y grcov;
|
||||
cargo test --no-default-features --features libp2p
|
||||
cargo build --no-default-features --features libp2p
|
||||
rm -rf target/debug/{build,incremental,deps}
|
||||
cargo test --no-default-features --features libp2p --no-run
|
||||
rm -rf target/debug/{build,incremental,deps}
|
||||
mkdir /tmp/cov;
|
||||
grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov;
|
||||
env:
|
||||
|
|
Loading…
Reference in New Issue