ci: add nightly rustfmt to workflow
This commit is contained in:
parent
4c083252ec
commit
3a42c27061
2 changed files with 4 additions and 2 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue