mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-08 17:03:08 +00:00
codecov add x86_64-unknown-linux-gnu
This commit is contained in:
parent
fd68bc3ac4
commit
cfc353548a
10
.github/workflows/codecov.yml
vendored
10
.github/workflows/codecov.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
RUSTFLAGS: -C instrument-coverage
|
RUSTFLAGS: -C instrument-coverage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Checkout submodules
|
- name: Checkout submodules
|
||||||
@ -27,14 +27,16 @@ jobs:
|
|||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- run: |
|
- run: |
|
||||||
|
echo "Adding x86_64-unknown-linux-gnu target";
|
||||||
|
rustup target add x86_64-unknown-linux-gnu;
|
||||||
echo "Installing grcov";
|
echo "Installing grcov";
|
||||||
cargo install grcov;
|
cargo install grcov;
|
||||||
echo "Running tests";
|
echo "Running tests";
|
||||||
cargo test;
|
cargo test --target x86_64-unknown-linux-gnu --verbose;
|
||||||
echo "Running ignored tests for coverage";
|
echo "Running ignored tests for coverage";
|
||||||
cargo test discv5_echo -- --ignored;
|
cargo test discv5_echo -- --ignored --target x86_64-unknown-linux-gnu --verbose;
|
||||||
echo "Running default_echo ignored tests for coverage";
|
echo "Running default_echo ignored tests for coverage";
|
||||||
cargo test default_echo -- --ignored;
|
cargo test default_echo -- --ignored --target x86_64-unknown-linux-gnu --verbose;
|
||||||
mkdir /tmp/cov;
|
mkdir /tmp/cov;
|
||||||
echo "Generating coverage report";
|
echo "Generating coverage report";
|
||||||
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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user