Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
add cargo shear to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xvello committed Apr 24, 2024
1 parent 8a936c1 commit d24e3da
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Run cargo check
run: cargo check --all-features

clippy:
linting:
runs-on: depot-ubuntu-22.04-4

steps:
Expand All @@ -81,7 +81,7 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy
components: clippy,rustfmt

- uses: actions/cache@v3
with:
Expand All @@ -94,17 +94,18 @@ jobs:
- name: Run clippy
run: cargo clippy -- -D warnings

format:
runs-on: depot-ubuntu-22.04-4
- name: Check format
run: cargo fmt -- --check

shear:
runs-on: depot-ubuntu-22.04-4
steps:
- uses: actions/checkout@v3

- name: Install latest rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- name: Install cargo-binstall
uses: cargo-bins/cargo-binstall@main

- name: Format
run: cargo fmt -- --check
- name: Install cargo-shear
run: cargo binstall --no-confirm cargo-shear

- run: cargo shear

0 comments on commit d24e3da

Please sign in to comment.