Add nh terminal program configuration #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint nix code | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**.nix" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "**.nix" | |
workflow_dispatch: | |
jobs: | |
statix: | |
name: Linting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Check flake.lock file | |
uses: DeterminateSystems/flake-checker-action@v9 | |
- name: Install nix and flakes | |
uses: DeterminateSystems/nix-installer-action@v16 | |
- name: Use magic nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@v9 | |
- name: Use cachix nix cache | |
uses: cachix/cachix-action@v15 | |
with: | |
name: statix | |
- name: Run statix | |
uses: jocelynthode/[email protected] |