Skip to content

πŸ’š Fix ci

πŸ’š Fix ci #3

Workflow file for this run

name: Clippy
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Cache cargo build artifacts
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
run: cargo clippy --all-targets -- -D warnings