Skip to content

Commit

Permalink
feat(flake): add formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
ryand56 committed Sep 16, 2024
1 parent b806999 commit 7f70520
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/eval-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Eval"

on:
push:
branches: 'master'
pull_request_target:

jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v4"
- uses: "cachix/install-nix-action@V28"
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: Check formatting
run: nix fmt -- -c .
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
...
}:
rec {
formatter = pkgs.nixfmt-rfc-style;

packages = rec {
wrangler = pkgs.callPackage ./pkgs/wrangler/package.nix { };
default = wrangler;
Expand Down

0 comments on commit 7f70520

Please sign in to comment.