Skip to content

Commit

Permalink
Merge pull request #106 from sawantpritam/run-required-tests
Browse files Browse the repository at this point in the history
Update test run condition for workflow_dispatch
  • Loading branch information
itsankit-google committed Jun 29, 2022
2 parents 229fc4b + 0c99ea8 commit 0cdfbce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/e2e-triggered.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-${{ github.workflow }}
- name: Run required e2e tests
if: ${{ github.event.pull_request.merged == false}}
if: ${{ github.event_name != 'workflow_dispatch' && github.event.pull_request.merged == false}}
run: python3 e2e/src/main/scripts/run_e2e_test.py TestRunnerRequired.java
- name: Run all e2e tests if PR is merged
if: ${{ github.event.pull_request.merged == true}}
- name: Run all e2e tests
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true}}
run: python3 e2e/src/main/scripts/run_e2e_test.py
- name: Upload report
uses: actions/upload-artifact@v2.2.4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ jobs:
- name: Run required e2e tests
if: ${{ github.event.pull_request.merged == false}}
run: python3 e2e/src/main/scripts/run_e2e_test.py TestRunnerRequired.java
- name: Run all e2e tests if PR is merged
if: ${{ github.event.pull_request.merged == true}}
- name: Run all e2e tests
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true}}
run: python3 e2e/src/main/scripts/run_e2e_test.py
- name: Upload report
uses: actions/upload-artifact@v2.2.4
Expand Down

0 comments on commit 0cdfbce

Please sign in to comment.