Skip to content

Commit

Permalink
add default nix formatter and its corresponding Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 14, 2023
1 parent 3181c8a commit 05446b1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/nix-fmt-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Nix formatter checks

on:
pull_request:

jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Nix
uses: cachix/install-nix-action@v18

- name: Run nix formatter tool
run: nix fmt . -- --check
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
];
};
in rec {
formatter = pkgs.alejandra;

packages = {
inherit (pkgs) php php56 php70 php71 php72 php73 php74 php80 php81 php82;
};
Expand Down

0 comments on commit 05446b1

Please sign in to comment.