Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default runner param to e2e split workflow #1242

Merged
merged 15 commits into from
Jun 24, 2024
27 changes: 16 additions & 11 deletions .github/workflows/e2e-tests-linux-split.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,16 @@ env:

jobs:
prereq:
runs-on: "${{ inputs.runner }}"
if: ${{ inputs.runner == 'self-hosted' }}
runs-on: ubuntu-latest
steps:
- name: Deleting chrome tmp files
id: clean-chrome-tmp-files
- name: Provision step
run: |
runCommand="rm -rf /tmp/.org.chromium.*"
eval "$runCommand";
echo "Provisioning ${{ github.event.inputs.runner }}"
outputs:
runner: ${{ github.event.inputs.runner || 'ubuntu-22.04' }}

tests-run-part-1:
runs-on: "${{ inputs.runner }}"
runs-on: ${{ needs.prereq.outputs.runner }}
if: always()
needs: prereq
steps:
Expand Down Expand Up @@ -88,7 +87,7 @@ jobs:
path: ./packages/e2e-tests/reports/allure/results

tests-run-part-2:
runs-on: "${{ inputs.runner }}"
runs-on: ${{ needs.prereq.outputs.runner }}
if: always()
needs: prereq
steps:
Expand Down Expand Up @@ -124,7 +123,7 @@ jobs:
path: ./packages/e2e-tests/reports/allure/results

tests-run-part-3:
runs-on: "${{ inputs.runner }}"
runs-on: ${{ needs.prereq.outputs.runner }}
if: always()
needs: prereq
steps:
Expand Down Expand Up @@ -160,7 +159,7 @@ jobs:
path: ./packages/e2e-tests/reports/allure/results

tests-run-part-4:
runs-on: "${{ inputs.runner }}"
runs-on: ${{ needs.prereq.outputs.runner }}
if: always()
needs: prereq
steps:
Expand Down Expand Up @@ -197,7 +196,7 @@ jobs:

results-processing:
needs: [tests-run-part-1, tests-run-part-2, tests-run-part-3, tests-run-part-4]
runs-on: "${{ inputs.runner }}"
runs-on: 'self-hosted'
if: always()
steps:
- name: Download reports from part 1
Expand Down Expand Up @@ -273,3 +272,9 @@ jobs:
SLACK_TITLE: 'Test automation results :rocket:'
SLACK_USERNAME: lace-qa-bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- name: Deleting chrome tmp files
id: clean-chrome-tmp-files
if: ${{ needs.prereq.outputs.runner == 'self-hosted' }}
run: |
runCommand="rm -rf /tmp/.org.chromium.*"
eval "$runCommand";
Loading