Skip to content

Commit

Permalink
Use nightly for clippy and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed Oct 4, 2022
1 parent 57fa565 commit 79303b1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/quick-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/weekly-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,37 @@ 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

- 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
Expand Down

0 comments on commit 79303b1

Please sign in to comment.