-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pipeline to test against git latest, 2.34.1, 2.25.1
- Loading branch information
1 parent
2f7a2c7
commit 7fce779
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: CI | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the "main" branch | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run tests git-latest | ||
run: | | ||
git --version | ||
verbose=true debug=true bash _tests.sh || { | ||
exit_code=$? | ||
find . -name run.log | ||
find . -name run.log | xargs -I % cat % | ||
exit $exit_code | ||
} | ||
- name: Run tests git-latest | ||
run: | | ||
alias git="docker run -ti --rm -v $(pwd):/git -v $HOME/.ssh:/root/.ssh alpine/git:latest" | ||
git --version | ||
verbose=true debug=true bash _tests.sh || { | ||
exit_code=$? | ||
find . -name run.log | xargs -I % cat | ||
exit $exit_code | ||
} | ||
- name: Run tests git-2.34.1 | ||
run: | | ||
alias git="docker run -ti --rm -v $(pwd):/git -v $HOME/.ssh:/root/.ssh alpine/git:2.34.1" | ||
git --version | ||
verbose=true debug=true bash _tests.sh || { | ||
exit_code=$? | ||
find . -name run.log | xargs -I % cat | ||
exit $exit_code | ||
} | ||
- name: Run tests git-2.25.1 | ||
run: | | ||
alias git="docker run -ti --rm -v $(pwd):/git -v $HOME/.ssh:/root/.ssh alpine/git:2.25.1" | ||
git --version | ||
verbose=true debug=true bash _tests.sh || { | ||
exit_code=$? | ||
find . -name run.log | xargs -I % cat | ||
exit $exit_code | ||
} |