addning nixpkgs fmt ci

This commit is contained in:
revol-xut 2022-12-17 17:46:09 +01:00
parent ba7d0c0a8a
commit dee80f1127
No known key found for this signature in database
GPG key ID: 4F56FF7759627D07

25
.github/workflows/fmt.yaml vendored Normal file
View file

@ -0,0 +1,25 @@
name: main
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check-flake:
name: Check Flake
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 -p nixpkgs-fmt --run 'nixpkgs-fmt .'