Skip to content

Commit 2fd52a6

Browse files
committed
Use nightly rustfmt on CI
1 parent 03cb174 commit 2fd52a6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/hardhat-core-ci.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -282,18 +282,26 @@ jobs:
282282
steps:
283283
- uses: actions/checkout@v3
284284

285+
- name: Install nightly rustfmt
286+
uses: actions-rs/toolchain@v1
287+
with:
288+
toolchain: nightly
289+
profile: minimal
290+
components: rustfmt
291+
285292
- name: Install stable toolchain
286293
uses: actions-rs/toolchain@v1
287294
with:
288295
profile: minimal
289296
override: true
290-
components: clippy, rustfmt
297+
components: clippy
291298

292299
- uses: Swatinem/rust-cache@v2
293300

294301
- name: Run cargo fmt
295302
uses: actions-rs/cargo@v1
296303
with:
304+
toolchain: nightly
297305
command: fmt
298306
args: --all --check
299307

0 commit comments

Comments
 (0)