feat(hwi): add hardware wallet support #265
Workflow file for this run
This file contains hidden or 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: [push, pull_request] | |
name: Code Coverage | |
jobs: | |
Codecov: | |
name: Code Coverage | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: "-Cinstrument-coverage" | |
RUSTDOCFLAGS: "-Cinstrument-coverage" | |
LLVM_PROFILE_FILE: "./target/coverage/%p-%m.profraw" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libudev-dev libusb-1.0-0-dev lcov | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
profile: minimal | |
components: llvm-tools-preview | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2.7.8 | |
- name: Install grcov | |
run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi | |
- name: Test | |
run: cargo test --all-features | |
- name: Make coverage directory | |
run: mkdir coverage | |
- name: Run grcov | |
run: grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --keep-only 'src/**' --ignore 'tests/**' -o ./coverage/lcov.info | |
- name: Check lcov.info | |
run: cat ./coverage/lcov.info | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./coverage/lcov.info |