2024-07-03 17:07:40 -04:00
|
|
|
name: "nix"
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
check-format:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-05 21:58:22 -04:00
|
|
|
- uses: actions/checkout@v4
|
2024-07-03 17:07:40 -04:00
|
|
|
with:
|
2024-07-03 21:34:19 -04:00
|
|
|
fetch-depth: 1
|
2024-07-05 21:58:22 -04:00
|
|
|
- uses: cachix/install-nix-action@v27
|
2024-07-03 17:07:40 -04:00
|
|
|
- name: check if flake complies with default style
|
|
|
|
run: nix fmt -- -c .
|
|
|
|
check-eval:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-05 21:58:22 -04:00
|
|
|
- uses: actions/checkout@v4
|
2024-07-03 17:07:40 -04:00
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
2024-07-05 21:58:22 -04:00
|
|
|
- uses: cachix/install-nix-action@v27
|
2024-07-03 17:07:40 -04:00
|
|
|
- name: check if flake evaluates
|
|
|
|
run: nix flake check
|