-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 909 Bytes
/
nix-flake.yaml
File metadata and controls
35 lines (30 loc) · 909 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
33
34
35
name: "CI: Flake check"
on:
push:
paths:
- "flake.nix"
- "flake.lock"
- ".github/workflows/nix-flake.yaml"
- ".github/actions/setup-nix/**"
pull_request:
paths:
- "flake.nix"
- "flake.lock"
- ".github/workflows/nix-flake.yaml"
- ".github/actions/setup-nix/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Check flake syntax and structure
flake-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install Nix
uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
with:
github_access_token: ${{ github.token }}
- name: Check flake
run: nix flake check --all-systems --print-build-logs --show-trace