Lint #25
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: Lint | |
on: | |
push: | |
paths: | |
- '.github/workflows/check.yml' | |
- 'Cargo.toml' | |
- 'rustfmt.toml' | |
- 'src/**/*' | |
pull_request: | |
paths: | |
- '.github/workflows/check.yml' | |
- 'Cargo.toml' | |
- 'rustfmt.toml' | |
- 'src/**/*' | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/[email protected] | |
with: | |
components: rustfmt | |
- name: Cargo format | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --manifest-path ./Cargo.toml --all -- --check | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/[email protected] | |
with: | |
components: clippy | |
- name: Cargo clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --manifest-path ./Cargo.toml --all -- --deny warnings | |
audit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/[email protected] | |
- name: Install cargo-audit | |
run: cargo install cargo-audit | |
- name: Cargo audit | |
uses: actions-rs/cargo@v1 | |
with: | |
command: audit |