nixcfg/.github/workflows/nix-check.yml

30 lines
751 B
YAML
Raw Permalink Normal View History

2024-07-14 16:56:59 -04:00
name: "nix-check"
on:
push:
paths-ignore:
- '**/*.md'
- '.github/**'
- '_img/**'
workflow_dispatch:
jobs:
fmt-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: 1
2024-07-14 17:04:17 -04:00
- uses: DeterminateSystems/nix-installer-action@main
2024-07-15 08:22:10 -04:00
- uses: DeterminateSystems/magic-nix-cache-action@main
2024-07-14 17:04:17 -04:00
- name: Check formatting
run: nix fmt -- -c .
eval-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: 1
2024-07-14 17:04:17 -04:00
- uses: DeterminateSystems/nix-installer-action@main
2024-07-15 08:22:10 -04:00
- uses: DeterminateSystems/magic-nix-cache-action@main
2024-07-14 17:04:17 -04:00
- name: Check flake evaluation
run: nix flake check