2024-07-14 16:56:59 -04:00
|
|
|
name: "nix-check"
|
2024-07-14 10:28:53 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- '.github/**'
|
|
|
|
- '_img/**'
|
|
|
|
workflow_dispatch:
|
2024-07-03 17:07:40 -04:00
|
|
|
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-14 10:28:53 -04:00
|
|
|
- name: Install Nix
|
|
|
|
uses: DeterminateSystems/nix-installer-action@main
|
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-14 10:28:53 -04:00
|
|
|
- name: Install Nix
|
|
|
|
uses: DeterminateSystems/nix-installer-action@main
|
2024-07-03 17:07:40 -04:00
|
|
|
- name: check if flake evaluates
|
|
|
|
run: nix flake check
|