Skip to content

Cargo fmt

Cargo fmt #37

Workflow file for this run

name: Push Checks
on: push
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Lint and test
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "rust-stable-cache"
cache-all-crates: "true"
- name: Build
run: cargo build
- name: Run tests
run: cargo test
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Cargo clippy
run: cargo clippy --frozen --locked --all-targets --all-features -- -D warnings