Skip to content

chore: precommit yml #1873

chore: precommit yml

chore: precommit yml #1873

Workflow file for this run

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 bash -c '
echo "Rust version: $(cargo --version)"
echo "Toolchain: $RUSTUP_TOOLCHAIN"
cargo fmt --check
'