allow no skip-if (#23) #22
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 code linting | |
on: | |
push: | |
paths: | |
- '**.rs' | |
- '**/workflows/rust.yml' | |
branches: | |
- 'main' | |
pull_request: | |
paths: | |
- '**.rs' | |
branches: | |
- 'main' | |
jobs: | |
lint_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run cargo fmt | |
working-directory: src/ | |
run: cargo fmt -- --check | |
- name: Run cargo clippy | |
working-directory: src/ | |
run: cargo clippy --all-targets --all-features -- -Dwarnings | |
- name: Run cargo test | |
run: cargo test --all-features |