Skip to content

Commit

Permalink
use nightly toolchain for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
a-moreira committed Jan 2, 2024
1 parent 2917bf4 commit 6e7c4e9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,26 @@ jobs:
linting:

runs-on: ubuntu-latest

steps:
# Install Rust nightly toolchain
- uses: actions/checkout@v3
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

# cargo fmt
- uses: actions/checkout@v3
- name: fmt
run: cargo fmt --all --check
run: cargo +nightly fmt --all --check

# run cargo clippy
- uses: actions/checkout@v3
- name: Clippy
run: cargo clippy --all
run: cargo +nightly clippy --all

cross-testing:
strategy:
Expand Down

0 comments on commit 6e7c4e9

Please sign in to comment.