chore: precommit yml #1872
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
self-care: | |
name: Flake self-check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check Nix flake inputs | |
uses: DeterminateSystems/flake-checker-action@v7 | |
with: | |
fail-mode: true | |
pre-commit-checks: | |
name: "Cargo fmt, typos" | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v11 | |
- name: Nix Cache | |
uses: DeterminateSystems/magic-nix-cache-action@v6 | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Cargo fmt | |
run: nix develop -i -L .#nightly --command cargo fmt --check | |
- name: Typos | |
run: nix develop -i -L .#nightly --command typos | |