From e925dbe97df726b44dd3dffa9e2a46473732981c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Fri, 22 Mar 2024 10:20:18 +0000 Subject: [PATCH] simple example: show enterTest --- README.md | 7 ++++++- devenv/init/devenv.nix | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ed8b55fd7..18b133446 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,12 @@ Running ``devenv init`` generates ``devenv.nix``: enterShell = '' hello - git --version + ''; + + # https://devenv.sh/tests/ + enterTest = '' + echo "Running tests" + git --version | grep "2.42.0" ''; # https://devenv.sh/languages/ diff --git a/devenv/init/devenv.nix b/devenv/init/devenv.nix index fa9ea45ee..c7cdc7d47 100644 --- a/devenv/init/devenv.nix +++ b/devenv/init/devenv.nix @@ -15,6 +15,12 @@ git --version ''; + # https://devenv.sh/tests/ + enterTest = '' + echo "Running tests" + git --version | grep "2.42.0" + ''; + # https://devenv.sh/services/ # services.postgres.enable = true;