feat: example app and waku_destroy
#175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
name: Codecov | |
jobs: | |
test: | |
name: Test | |
env: | |
RUSTFLAGS: -C instrument-coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- uses: actions/setup-go@v3 # we need go to build go-waku | |
with: | |
go-version: '1.20' | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: llvm-tools-preview | |
- uses: actions-rs/cargo@v1 | |
continue-on-error: true | |
- run: | | |
cargo install grcov; | |
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@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: /tmp/cov/ | |
name: waku-bindings-codecov | |
fail_ci_if_error: true | |