-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (32 loc) · 955 Bytes
/
Copy pathlint.yml
File metadata and controls
32 lines (32 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Lint
on:
push:
branches:
- main
- claude/**
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes pipe-operators
- name: Nix store cache
uses: nix-community/cache-nix-action@v7
with:
primary-key: nix-${{ runner.os }}-lint-${{ hashFiles('flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-lint-
gc-max-store-size-linux: 2G
purge: true
purge-prefixes: nix-${{ runner.os }}-lint-
purge-created: 0
purge-primary-key: never
- name: Run deadnix
run: nix develop --command deadnix --fail .
- name: Run statix
run: nix develop --command statix check .