mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 06:09:17 -05:00
27 lines
611 B
YAML
27 lines
611 B
YAML
name: "nix-check"
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- '.github/**'
|
|
- '_img/**'
|
|
workflow_dispatch:
|
|
jobs:
|
|
fmt-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
with:
|
|
fetch-depth: 1
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
- name: Check formatting
|
|
run: nix fmt -- -c .
|
|
eval-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
with:
|
|
fetch-depth: 1
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
- name: Check flake evaluation
|
|
run: nix flake check
|