Skip to content

Commit

Permalink
pr: do zig fmt --check on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudef committed Nov 9, 2024
1 parent 3882e44 commit c5e10c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: |
nix run .#check
nix run .#test
nix run .#readme
5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
fi
'';

# nix run .#check
apps.check = env.app [] ''
zig fmt --check .
'';

# nix run .#docs
apps.docs = env.app [] "zig build docs -- \"$@\"";

Expand Down

0 comments on commit c5e10c1

Please sign in to comment.