remove unused rust attributes #59
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: dev-rule | |
on: | |
push: | |
paths: | |
- 'services/rule/**' | |
branches-ignore: | |
- 'master' | |
workflow_run: | |
workflows: [dev-crates] | |
types: | |
- completed | |
jobs: | |
test: | |
name: rule | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
components: clippy, rustfmt | |
- uses: taiki-e/install-action@nextest | |
- name: linting | |
run: | | |
cargo fmt -- --check | |
cargo clippy -- -Dwarnings | |
working-directory: services/rule | |
- name: install cargo-llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- name: services/rule unit tests | |
run: cargo test | |
working-directory: services/rule | |
- name: services/rule coverage report | |
run: make rust-coverage RUST_PKG=rule | |
- name: fail services/rule coverage under 66% | |
run: | | |
if [[ $(make rust-coverage-percent RUST_PKG=rule) -lt 66 ]]; then | |
echo 'coverage dropped below 66%' | |
exit 1 | |
fi |