-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (25 loc) · 787 Bytes
/
check.yml
File metadata and controls
32 lines (25 loc) · 787 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: Nix Flake Check
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check formatting (nix fmt)
run: |
echo "Verifying all files are formatted with 'nix fmt'..."
echo "If this fails, run 'nix fmt' locally and commit the changes."
nix build .#checks.x86_64-linux.treefmt
- name: Run nix flake check
run: nix flake check --all-systems
- name: Show flake outputs
run: nix flake show