From c1e987ac2ceb6aa363d851c5ac79ce55fcb1a052 Mon Sep 17 00:00:00 2001 From: Hraban Luyat Date: Sat, 16 Mar 2024 12:02:48 -0400 Subject: [PATCH] test: ensure git author config in tests --- .github/workflows/ci.yml | 4 ---- Readme.org | 6 ++++++ flake.nix | 6 ------ 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55bf551..a67de32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,10 +73,6 @@ jobs: run: | tar xvf executables.tar rm -f executables.tar - - name: configure git - run: | - git config --global user.name "GitHub Actions" - git config --global user.email "<>" - name: Run tests run: | ./tomono-test diff --git a/Readme.org b/Readme.org index a150c7d..4c15d95 100644 --- a/Readme.org +++ b/Readme.org @@ -808,6 +808,12 @@ export DEBUGSH=true # The tomono script is tangled right next to the test script export PATH="$PWD:$PATH" +# Ensure testing always works even on unconfigured CI etc +export GIT_AUTHOR_NAME="Test" +export GIT_AUTHOR_EMAIL="test@test.com" +export GIT_COMMITTER_NAME="Test" +export GIT_COMMITTER_EMAIL="test@test.com" + <> <> <> diff --git a/flake.nix b/flake.nix index c3fbe59..e1e21dd 100644 --- a/flake.nix +++ b/flake.nix @@ -69,12 +69,6 @@ pkgs.stdenv.mkDerivation (_: { pname = "tomono-check"; version = "1.0"; - env = { - GIT_AUTHOR_NAME = "Test"; - GIT_AUTHOR_EMAIL = "test@test.com"; - GIT_COMMITTER_NAME = "Test"; - GIT_COMMITTER_EMAIL = "test@test.com"; - }; nativeBuildInputs = [ # The actual code being tested. Must be in PATH. self.packages.${system}.default