Skip to content

Commit

Permalink
Use docker tests instead of running on base image
Browse files Browse the repository at this point in the history
Allows for testing a greater set of git and bash configurations
  • Loading branch information
admorgan committed Jul 7, 2024
1 parent a857b16 commit 1041053
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ jobs:
- run:
git config --global user.email "[email protected]";
git config --global user.name "Your Name";
- run: make test
git config --global init.defaultBranch "master";
git config --global --add safe.directory "$PWD";
git config --global --add safe.directory "$PWD.git";
- if: startsWith(matrix.os, 'macos')
run: make test
- if: startsWith(matrix.os, 'ubuntu')
run: make docker-tests
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ clean:
rm -fr tmp test/tmp

define docker-make-test
docker run -i -t --rm \
docker run --rm \
-v $(PWD):/git-subrepo \
-w /git-subrepo \
$(DOCKER_IMAGE) \
Expand Down

0 comments on commit 1041053

Please sign in to comment.