Skip to content

Commit 84cbe9d

Browse files
committed
build: add test-ci package for local nix workflow testing
1 parent 1529b87 commit 84cbe9d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ vendor/
1313
.direnv
1414
result
1515
.pre-commit-config.yaml
16-
.pre-commit-config.yaml
16+
*.log

flake.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@
8585
go-jsonschema-go124 = makePackage pkgs.go_1_24;
8686
go-jsonschema-go125 = makePackage pkgs.go;
8787
default = makePackage pkgs.go;
88+
89+
test-ci = pkgs.writeShellApplication {
90+
name = "test-ci";
91+
runtimeInputs = [pkgs.act];
92+
text = ''
93+
exec act -W .github/workflows/nix.yaml -P ubuntu-24.04=catthehacker/ubuntu:act-24.04 "$@"
94+
'';
95+
};
8896
};
8997

9098
checks = {

0 commit comments

Comments
 (0)