Skip to content

Commit

Permalink
ci: Run clippy lints + use dtolnay/rust-toolchain
Browse files Browse the repository at this point in the history
* Run clippy lints!

* Use dtolnay/rust-toolchain, because it's better
  • Loading branch information
theduke committed Oct 28, 2023
1 parent 2b56bdc commit ec21068
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

# Automatically cancel previous workflow runs when a new commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
Expand All @@ -17,19 +21,13 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust-channel }}
override: true
components: rustfmt, clippy

- name: Build
run: cargo build --verbose --release
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Formatting
- name: Check formatting
run: cargo fmt --check

- name: Lint
- name: Clippy lints
run: cargo clippy -- --deny warnings

- name: Test
Expand Down

0 comments on commit ec21068

Please sign in to comment.