Bump actions/cache from 3 to 4 #130
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: PR Checks | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
jobs: | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/[email protected] | |
with: | |
toolchain: nightly | |
profile: minimal | |
components: clippy | |
- run: cat CI.toml >> Cargo.toml | |
- run: cargo +nightly clippy --workspace --locked --no-default-features | |
- run: cargo +nightly clippy --workspace --locked | |
- run: cargo +nightly clippy --workspace --locked --all-features | |
fmt: | |
name: Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/[email protected] | |
with: | |
toolchain: nightly | |
profile: minimal | |
components: rustfmt | |
- run: cat CI.toml >> Cargo.toml | |
- run: cargo +nightly fmt --all -- --check |