Add Github Actions CI jobs for testing, linting, formatting etc #7
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 linting | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/linting.yml | |
- '**/*.rs' | |
- Cargo.toml | |
- Cargo.lock | |
workflow_dispatch: | |
jobs: | |
clippy-linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
profile: minimal | |
components: clippy | |
default: true | |
- name: Clippy check | |
env: | |
RUSTFLAGS: --deny warnings | |
run: cargo clippy --locked --all-targets |