From 79303b12b7f89932bbcddbbd22a390734841b457 Mon Sep 17 00:00:00 2001 From: Chevdor Date: Tue, 4 Oct 2022 09:40:17 +0200 Subject: [PATCH] Use nightly for clippy and fmt --- .github/workflows/quick-check.yml | 10 +++++++++- .github/workflows/weekly-check.yml | 15 ++++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/quick-check.yml b/.github/workflows/quick-check.yml index ee10b67..b67a7c5 100644 --- a/.github/workflows/quick-check.yml +++ b/.github/workflows/quick-check.yml @@ -14,8 +14,14 @@ jobs: profile: minimal toolchain: stable override: true + + - name: Install Rust nightly toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly components: clippy, rustfmt - + - name: Install Rust tooling uses: taiki-e/install-action@v1 with: @@ -26,12 +32,14 @@ jobs: - name: Cargo fmt uses: actions-rs/cargo@v1 with: + toolchain: nightly command: fmt args: --all -- --check - name: Cargo clippy uses: actions-rs/cargo@v1 with: + toolchain: nightly command: clippy args: -- -D warnings diff --git a/.github/workflows/weekly-check.yml b/.github/workflows/weekly-check.yml index 37de3d8..c67aad6 100644 --- a/.github/workflows/weekly-check.yml +++ b/.github/workflows/weekly-check.yml @@ -19,8 +19,14 @@ jobs: uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: ${{ matrix.rust }} + toolchain: stable override: true + + - name: Install Rust nightly toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly components: clippy, rustfmt - uses: actions/checkout@v2 @@ -28,19 +34,22 @@ jobs: - name: Cargo fmt uses: actions-rs/cargo@v1 with: + toolchain: nightly command: fmt args: --all -- --check - name: Cargo clippy uses: actions-rs/cargo@v1 with: + toolchain: nightly command: clippy args: -- -D warnings - - name: Cargo test + - name: Cargo nextest uses: actions-rs/cargo@v1 with: - command: test + command: nextest + args: run - name: Cargo check uses: actions-rs/cargo@v1