From 3a42c270616700fd3087f025f58bd1430890b19b Mon Sep 17 00:00:00 2001 From: Will Lillis Date: Thu, 2 May 2024 02:34:39 -0400 Subject: [PATCH] ci: add nightly rustfmt to workflow --- .github/workflows/ci.yml | 2 ++ Makefile | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1120022..de51faf5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/Makefile b/Makefile index 91df7b43..d653c593 100644 --- a/Makefile +++ b/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)