-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (59 loc) · 2.08 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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-native
run: |
git config --global user.email "[email protected]"
git config --global user.name "Git Artifact"
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 config --global user.email "[email protected]"
git config --global user.name "Git Artifact"
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 config --global user.email "[email protected]"
git config --global user.name "Git Artifact"
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 config --global user.email "[email protected]"
git config --global user.name "Git Artifact"
git --version
verbose=true debug=true bash _tests.sh || {
exit_code=$?
find . -name run.log | xargs -I % cat
exit $exit_code
}