mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 02:53:55 -05:00
22 lines
523 B
YAML
22 lines
523 B
YAML
|
name: "nix"
|
||
|
on: [push]
|
||
|
jobs:
|
||
|
check-format:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
- uses: cachix/install-nix-action@v20
|
||
|
- name: check if flake complies with default style
|
||
|
run: nix fmt -- -c .
|
||
|
check-eval:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
with:
|
||
|
fetch-depth: 1
|
||
|
- uses: cachix/install-nix-action@v20
|
||
|
- name: check if flake evaluates
|
||
|
run: nix flake check
|