ci: add nightly rustfmt to workflow

This commit is contained in:
Will Lillis 2024-05-02 02:34:39 -04:00 committed by GitHub
parent 4c083252ec
commit 3a42c27061
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -15,6 +15,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- run: rustup toolchain install nightly --profile minimal
- run: rustup component add --toolchain nightly rustfmt
- uses: Swatinem/rust-cache@v2
- run: make lint

View file

@ -100,11 +100,11 @@ test_wasm:
lint:
cargo update --workspace --locked --quiet
cargo check --workspace --all-targets
cargo fmt --all --check
cargo +nightly fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
format:
cargo fmt --all
cargo +nightly fmt --all
changelog:
@git-cliff --config script/cliff.toml --output CHANGELOG.md --latest --github-token $(shell gh auth token)