[workspace] F00: empty crates, licences, Nix flake, hook, CI
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, "feature/**"]
|
||||
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'
|
||||
Reference in New Issue
Block a user