forked from qtile/qtile
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 838 Bytes
/
Copy pathflake-check.yml
File metadata and controls
36 lines (29 loc) · 838 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
36
name: Nix Flake Check
on:
push:
branches:
- master
pull_request:
jobs:
flake-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
- name: Run nix flake check
run: nix flake check --print-build-logs
- name: Check Nix formatting
run: |
nix fmt .
if git diff --exit-code -- '*.nix'; then
echo "All Nix files are formatted correctly"
else
echo "Nix files need formatting. Run 'nix fmt' locally."
exit 1
fi
- name: Build Qtile package
run: nix build .#qtile --no-link --print-build-logs
- name: Verify Qtile version
run: nix shell .#qtile -c qtile --version