Skip to content

Commit

Permalink
CI: Check Linting and Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowiiii committed Aug 20, 2024
1 parent a6fbc3d commit b7a4b9d
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Cargo Build & Test
name: Cargo Build, Test, and Linting

on:
push:
pull_request:

env:
env:
CARGO_TERM_COLOR: always

jobs:
Expand All @@ -14,9 +14,13 @@ jobs:
strategy:
matrix:
toolchain:
- stable
- stable

steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose
- uses: actions/checkout@v4

- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose
- run: cargo clippy --all-targets --all-features --no-default-features -- -D warnings
- run: cargo fmt --check

0 comments on commit b7a4b9d

Please sign in to comment.