nixcfg/.github/workflows/flake-checks.yml

29 lines
690 B
YAML
Raw Normal View History

2024-07-14 16:56:59 -04:00
name: "nix-check"
on:
push:
paths-ignore:
- '.github/**'
- '_img/**'
workflow_dispatch:
jobs:
check-format:
runs-on: ubuntu-latest
steps:
2024-07-05 21:58:22 -04:00
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- 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
with:
fetch-depth: 1
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: check if flake evaluates
run: nix flake check