Files
2026-11-02 01:22:49 +01:00

35 lines
913 B
YAML

name: ci
on:
# One run per change: pull requests, then main after the merge.
push:
branches: [main]
pull_request:
# Host-mode Windows runners for now. The reproducible Nix build needs Linux and is checked by hand
# until a Linux runner exists (.agents/features/scaffold.md §4).
defaults:
run:
shell: powershell
jobs:
check:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Rust format
run: cargo fmt --all --check
- name: Clippy (deny warnings)
run: cargo clippy --workspace --all-targets --locked -- -D warnings
- name: Tests
run: cargo test --workspace --locked
- name: Dependency direction
run: '& "$env:ProgramFiles\Git\bin\sh.exe" scripts/check-deps.sh'
- name: Pre-commit hook rejects big files and build output
run: '& "$env:ProgramFiles\Git\bin\sh.exe" scripts/test-hooks.sh'