CI: Check Linting and Format

This commit is contained in:
Snowiiii 2024-08-20 13:20:28 +02:00
parent a6fbc3d13a
commit b7a4b9da2c

View File

@ -1,4 +1,4 @@
name: Cargo Build & Test name: Cargo Build, Test, and Linting
on: on:
push: push:
@ -15,8 +15,12 @@ jobs:
matrix: matrix:
toolchain: toolchain:
- stable - stable
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose - run: cargo build --verbose
- run: cargo test --verbose - run: cargo test --verbose
- run: cargo clippy --all-targets --all-features --no-default-features -- -D warnings
- run: cargo fmt --check