From dee80f1127caef8b4e32c6431680aea8c984155e Mon Sep 17 00:00:00 2001 From: revol-xut Date: Sat, 17 Dec 2022 17:46:09 +0100 Subject: [PATCH] addning nixpkgs fmt ci --- .github/workflows/fmt.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/fmt.yaml diff --git a/.github/workflows/fmt.yaml b/.github/workflows/fmt.yaml new file mode 100644 index 0000000..1bffffa --- /dev/null +++ b/.github/workflows/fmt.yaml @@ -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 .'