diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 613e810..11fe308 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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 diff --git a/flake.nix b/flake.nix index a976c8c..2ce2397 100644 --- a/flake.nix +++ b/flake.nix @@ -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 -- \"$@\"";