Skip to content

Commit 79303b1

Browse files
committed
Use nightly for clippy and fmt
1 parent 57fa565 commit 79303b1

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

.github/workflows/quick-check.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ jobs:
1414
profile: minimal
1515
toolchain: stable
1616
override: true
17+
18+
- name: Install Rust nightly toolchain
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
profile: minimal
22+
toolchain: nightly
1723
components: clippy, rustfmt
18-
24+
1925
- name: Install Rust tooling
2026
uses: taiki-e/install-action@v1
2127
with:
@@ -26,12 +32,14 @@ jobs:
2632
- name: Cargo fmt
2733
uses: actions-rs/cargo@v1
2834
with:
35+
toolchain: nightly
2936
command: fmt
3037
args: --all -- --check
3138

3239
- name: Cargo clippy
3340
uses: actions-rs/cargo@v1
3441
with:
42+
toolchain: nightly
3543
command: clippy
3644
args: -- -D warnings
3745

.github/workflows/weekly-check.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,37 @@ jobs:
1919
uses: actions-rs/toolchain@v1
2020
with:
2121
profile: minimal
22-
toolchain: ${{ matrix.rust }}
22+
toolchain: stable
2323
override: true
24+
25+
- name: Install Rust nightly toolchain
26+
uses: actions-rs/toolchain@v1
27+
with:
28+
profile: minimal
29+
toolchain: nightly
2430
components: clippy, rustfmt
2531

2632
- uses: actions/checkout@v2
2733

2834
- name: Cargo fmt
2935
uses: actions-rs/cargo@v1
3036
with:
37+
toolchain: nightly
3138
command: fmt
3239
args: --all -- --check
3340

3441
- name: Cargo clippy
3542
uses: actions-rs/cargo@v1
3643
with:
44+
toolchain: nightly
3745
command: clippy
3846
args: -- -D warnings
3947

40-
- name: Cargo test
48+
- name: Cargo nextest
4149
uses: actions-rs/cargo@v1
4250
with:
43-
command: test
51+
command: nextest
52+
args: run
4453

4554
- name: Cargo check
4655
uses: actions-rs/cargo@v1

0 commit comments

Comments
 (0)