Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,28 @@ jobs:
# docker tags to use in matrix build
git_version: [latest, 2.30.2, 2.23.0, 2.19.2]
runs-on: ubuntu-latest
container:
image: bitnami/git:${{ matrix.git_version }}
env:
GIT_IMAGE: ${{ matrix.git_version == 'latest' && 'bitnami/git:latest' || format('bitnamilegacy/git:{0}', matrix.git_version) }}

steps:
- uses: actions/checkout@v2

- name: Run setup scripts with Bash
shell: bash
run: |
git config --global --add safe.directory /__w/git-katas/git-katas
git --version
git config --global user.name "GitHub Actions"
git config --global user.email "nobody@localhost"
chmod +x ./test-all.sh
./test-all.sh
docker run --rm \
--volume "$GITHUB_WORKSPACE:/workspace" \
--workdir /workspace \
--env HOME=/tmp \
--entrypoint bash \
"$GIT_IMAGE" -c '
git config --global --add safe.directory /workspace
git --version
git config --global user.name "GitHub Actions"
git config --global user.email "nobody@localhost"
chmod +x ./test-all.sh
./test-all.sh
'

# job will succeed if all matrix builds succeed,
# used a toll gate to merge pr, without having
Expand Down
Loading