Bump Swatinem/rust-cache from 2.2.1 to 2.7.0 #100
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: Static Analysis | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Rustfmt | |
run: cargo fmt -- --check | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust Nightly | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: nightly | |
override: true | |
profile: minimal | |
components: clippy | |
- name: Run Clippy | |
run: cargo clippy --workspace --all-targets -- -D warnings | |
mdtomlfmt: | |
name: Generic format (md,toml) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run dprint | |
run: | | |
curl -fsSL https://dprint.dev/install.sh | sh | |
/home/runner/.dprint/bin/dprint check |