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 2723bf7 commit 6dd29bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ jobs:
- run:
git config --global user.email "you@example.com";
git config --global user.name "Your Name";
- run: make test
- 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 6dd29bf

Please sign in to comment.