Skip to content

Commit

Permalink
imrpove lint test
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Jan 3, 2024
1 parent f641aa6 commit de2cb27
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,31 @@ jobs:

clippy_format:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable

steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Obtain Rust
run: rustup override set ${{ matrix.rust }}

- name: Set up Rust
id: toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt

- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
tmp/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-v1

- name: Check clippy
run: rustup component add clippy && cargo clippy
run: cargo clippy

- name: Check formatting
run: rustup component add rustfmt && cargo fmt -- --check
run: cargo fmt -- --check

0 comments on commit de2cb27

Please sign in to comment.