start here #2
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
name: Project auto-testing | |
on: | |
push: | |
branches: | |
- main | |
permissions: {} | |
jobs: | |
Branches: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/checkout@v2 | |
with: | |
repository: exit-zero-academy/GitProject | |
path: GitProjectOriginal | |
- name: Copy test files | |
run: mv -f GitProjectOriginal/test/* test/ | |
- name: Test branches question | |
run: | | |
cd test | |
bash branches.sh | |
MergeConflict: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/checkout@v2 | |
with: | |
repository: exit-zero-academy/GitProject | |
path: GitProjectOriginal | |
- name: Copy test files | |
run: mv -f GitProjectOriginal/test/* test/ | |
- name: Test conflict question | |
run: | | |
git checkout main | |
cd test | |
bash conflict.sh | |
SensitiveData: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/checkout@v2 | |
with: | |
repository: exit-zero-academy/GitProject | |
path: GitProjectOriginal | |
- name: Copy test files | |
run: mv -f GitProjectOriginal/test/* test/ | |
- name: Test sensitive data question | |
run: | | |
git checkout main | |
bash test/sensitive_data.sh | |
MergeRepos: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/checkout@v2 | |
with: | |
repository: exit-zero-academy/GitProject | |
path: GitProjectOriginal | |
- name: Copy test files | |
run: mv -f GitProjectOriginal/test/* test/ | |
- name: Test merge repos question | |
run: | | |
git checkout main | |
cd test | |
bash merge_repos.sh |