nixos-config/.github/workflows/check.yml
2023-01-10 11:41:12 +01:00

26 lines
502 B
YAML

name: Check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check-flake:
name: Nixpkgs Formatting and Flake check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
experimental-features = nix-command flakes
- run: nix shell nixpkgs#nixpkgs-fmt -c nixpkgs-fmt . --check
- run: nix flake check