Skip to content

Commit

Permalink
test: ensure git author config in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hraban committed Mar 17, 2024
1 parent ea66e5a commit c1e987a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions Readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]"
export GIT_COMMITTER_NAME="Test"
export GIT_COMMITTER_EMAIL="[email protected]"

<<test-setup>>
<<test-run>>
<<test-evaluate>>
Expand Down
6 changes: 0 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@
pkgs.stdenv.mkDerivation (_: {
pname = "tomono-check";
version = "1.0";
env = {
GIT_AUTHOR_NAME = "Test";
GIT_AUTHOR_EMAIL = "[email protected]";
GIT_COMMITTER_NAME = "Test";
GIT_COMMITTER_EMAIL = "[email protected]";
};
nativeBuildInputs = [
# The actual code being tested. Must be in PATH.
self.packages.${system}.default
Expand Down

0 comments on commit c1e987a

Please sign in to comment.