nix-hermes-agent/.github/workflows/ci.yml
2026-03-18 02:24:18 +00:00

30 lines
703 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v13
- name: Check formatting (nixfmt)
run: find . -name '*.nix' -not -path './_*' | xargs nix run nixpkgs#nixfmt-rfc-style -- --check
- name: Lint (statix)
run: nix run nixpkgs#statix -- check .
check:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v13
- name: nix flake check
run: nix flake check --keep-going