mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-02 14:03:12 +00:00
56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
name: Codecov
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
RUSTFLAGS: "-C instrument-coverage -C force-frame-pointers=yes -C no-stack-check"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Checkout submodules
|
|
run: git submodule update --init --recursive
|
|
|
|
- name: Install stable toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Install llvm-tools and grcov
|
|
run: |
|
|
rustup component add llvm-tools-preview
|
|
cargo install grcov
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get install -y cmake ninja-build binaryen;
|
|
cargo install wasm-pack --version=0.13.1;
|
|
|
|
- name: Clean previous builds
|
|
run: cargo clean
|
|
|
|
- name: Run tests and generate coverage report
|
|
run: |
|
|
cargo test --all-features;
|
|
cargo test discv5_echo -- --ignored;
|
|
cargo test default_echo -- --ignored;
|
|
# mkdir /tmp/cov;
|
|
# grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov;
|
|
|
|
# - uses: codecov/codecov-action@v4
|
|
# with:
|
|
# token: ${{ secrets.CODECOV_TOKEN }}
|
|
# files: /tmp/cov/tests.lcov
|
|
# name: waku-bindings-codecov
|
|
# fail_ci_if_error: true
|