mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 17:37:43 -04:00
- Add deadnix, nixfmt, and statix to flake inputs - Add formatter output to flake for nix fmt support - Add deadnix, nixfmt, statix to Home Manager packages - Format all nix files with nixfmt - Add GitHub Actions workflow for CI validation - Support x86_64-darwin in formatter
27 lines
510 B
YAML
27 lines
510 B
YAML
name: Validate
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: cachix/install-nix-action@v26
|
|
with:
|
|
extra_nix_config: |
|
|
trusted-users = root @runner
|
|
|
|
- name: Validate flake
|
|
run: nix flake show
|
|
|
|
- name: Check formatting
|
|
run: nix fmt --check .
|
|
|
|
- name: Run deadnix
|
|
run: deadnix ./modules ./lib
|
|
|
|
- name: Run statix
|
|
run: statix check ./modules ./lib
|