test test fail #3
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
name: Rust CI | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ci: | |
name: Lint, build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y cmake | |
- name: Install toolchain | |
run: | | |
rustup update stable | |
rustup default stable | |
- name: Install additional tools | |
run: | | |
rustup component add clippy llvm-tools-preview | |
cargo install grcov convco | |
- name: run linter | |
run: cargo clippy -- --deny "warnings" | |
- name: build project | |
run: cargo build --verbose | |
- name: run tests | |
run: | | |
RUSTFLAGS="-C instrument-coverage" cargo test | |
mkdir -p target/coverage | |
grcov . --binary-path ./target/debug/deps/ -s . -t html,cobertura --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage | |
cat target/coverage/html/coverage.json |