mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-03 22:43:07 +00:00
fix grcov
This commit is contained in:
parent
0e5f7075b1
commit
8b2a01082d
15
.github/workflows/codecov.yml
vendored
15
.github/workflows/codecov.yml
vendored
@ -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 }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user