Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run clippy::pedantic with stable, too #112

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 1 addition & 25 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,32 +44,8 @@ jobs:
- name: linter
run: cargo clippy -- -D warnings

pedantic:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: install clippy nightly
run: rustup toolchain install nightly --component clippy

- name: get rust nightly version
id: rust_nightly
run: echo ::set-output name=version::$(rustup run nightly rustc --version)

- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ steps.rust_nightly.outputs.version }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-
${{ runner.os }}-cargo-

- name: run the pedantic linter (warnings only)
run: cargo +nightly clippy --color=always --all-targets -- -W clippy::pedantic
run: cargo clippy --color=always --all-targets -- -W clippy::pedantic

build:
needs: check
Expand Down