mirror of
https://github.com/0xrsydn/nix-hermes-agent.git
synced 2026-08-07 00:53:52 +00:00
34 lines
889 B
YAML
34 lines
889 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 .
|
|
- name: Test update impact reporter
|
|
run: python3 -m unittest tests/test_render_update_report.py
|
|
- name: Test updater helpers
|
|
run: bash tests/update-common.sh
|
|
|
|
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
|