diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f5d35eff..aa7c0d2e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -361,3 +361,5 @@ /modules/xsession.nix @rycee /modules/services/volnoti.nix @IvanMalison + +Makefile @thiagokokada diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..b3d57978 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +.PHONY: all all-tests test +NIX_PATH := nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz + +all: all-tests + +all-tests: + $(MAKE) test TEST=all + +test: +ifndef TEST + $(error Use 'make test TEST=' to run desired test) +endif + nix-shell --pure tests -I ${NIX_PATH} -A run.${TEST}