|
| 1 | +name: Project auto-testing |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - main |
| 6 | + |
| 7 | +permissions: {} |
| 8 | + |
| 9 | + |
| 10 | +jobs: |
| 11 | + Branches: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v3 |
| 15 | + with: |
| 16 | + fetch-depth: 0 |
| 17 | + - uses: actions/checkout@v2 |
| 18 | + with: |
| 19 | + repository: exit-zero-academy/GitProject |
| 20 | + path: GitProjectOriginal |
| 21 | + - name: Copy test files |
| 22 | + run: mv -f GitProjectOriginal/test/* test/ |
| 23 | + - name: Test branches question |
| 24 | + run: | |
| 25 | + cd test |
| 26 | + bash branches.sh |
| 27 | + MergeConflict: |
| 28 | + runs-on: ubuntu-latest |
| 29 | + steps: |
| 30 | + - uses: actions/checkout@v3 |
| 31 | + with: |
| 32 | + fetch-depth: 0 |
| 33 | + - uses: actions/checkout@v2 |
| 34 | + with: |
| 35 | + repository: exit-zero-academy/GitProject |
| 36 | + path: GitProjectOriginal |
| 37 | + - name: Copy test files |
| 38 | + run: mv -f GitProjectOriginal/test/* test/ |
| 39 | + - name: Test conflict question |
| 40 | + run: | |
| 41 | + git checkout main |
| 42 | + cd test |
| 43 | + bash conflict.sh |
| 44 | + SensitiveData: |
| 45 | + runs-on: ubuntu-latest |
| 46 | + steps: |
| 47 | + - uses: actions/checkout@v3 |
| 48 | + with: |
| 49 | + fetch-depth: 0 |
| 50 | + - uses: actions/checkout@v2 |
| 51 | + with: |
| 52 | + repository: exit-zero-academy/GitProject |
| 53 | + path: GitProjectOriginal |
| 54 | + - name: Copy test files |
| 55 | + run: mv -f GitProjectOriginal/test/* test/ |
| 56 | + - name: Test sensitive data question |
| 57 | + run: | |
| 58 | + git checkout main |
| 59 | + bash test/sensitive_data.sh |
| 60 | + MergeRepos: |
| 61 | + runs-on: ubuntu-latest |
| 62 | + steps: |
| 63 | + - uses: actions/checkout@v3 |
| 64 | + with: |
| 65 | + fetch-depth: 0 |
| 66 | + - uses: actions/checkout@v2 |
| 67 | + with: |
| 68 | + repository: exit-zero-academy/GitProject |
| 69 | + path: GitProjectOriginal |
| 70 | + - name: Copy test files |
| 71 | + run: mv -f GitProjectOriginal/test/* test/ |
| 72 | + - name: Test merge repos question |
| 73 | + run: | |
| 74 | + git checkout main |
| 75 | + cd test |
| 76 | + bash merge_repos.sh |
0 commit comments