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

22 lines
523 B
YAML
Raw Normal View History

name: "nix"
on: [push]
jobs:
check-format:
runs-on: ubuntu-latest
steps:
2024-07-05 21:58:22 -04:00
- uses: actions/checkout@v4
with:
fetch-depth: 1
2024-07-05 21:58:22 -04:00
- uses: cachix/install-nix-action@v27
- 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
2024-07-05 21:58:22 -04:00
- uses: cachix/install-nix-action@v27
- name: check if flake evaluates
run: nix flake check