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

Install chrome-beta for testing PR tool #54

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/pr_test_one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,16 @@ jobs:
working-directory: '${{ env.PS_DIR }}/tests/UI'
run: npm install

# Playwright must be installed all the time, we only install chromium since it's the only browser used
- name: Install browsers
working-directory: ${{ env.PS_DIR }}/tests/UI
if: ${{ env.BASE_BRANCH == '8.0.x' || env.BASE_BRANCH == '8.1.x' }}
run: npx playwright install chromium

- name: Install browsers
if: (env.BASE_BRANCH == 'develop')
working-directory: '${{ env.PS_DIR }}/tests/UI'
run: npx playwright install --with-deps
working-directory: ${{ env.PS_DIR }}/tests/UI
run: npx playwright install chrome-beta

- name: Run tests
id: runTests
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,15 @@ jobs:
done
shell: bash
# Playwright must be installed all the time, we only install chromium since it's the only browser used
- name: Install playwright
- name: Install browsers
working-directory: ${{ env.PS_DIR }}/tests/UI
run: |
npx playwright install chromium
if: ${{ inputs.base_branch == '8.0.x' || inputs.base_branch == '8.1.x' }}
run: npx playwright install chromium

- name: Install browsers
working-directory: ${{ env.PS_DIR }}/tests/UI
if: inputs.base_branch == 'develop'
run: npx playwright install chrome-beta

- name: Run sanity campaign
uses: ./custom_actions/.github/workflows/actions/run-tests
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test-with-prebuilt-shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,15 @@ jobs:
run: |
npm ci
# Playwright must be installed all the time, we only install chromium since it's the only browser used
- name: Install playwright
- name: Install browsers
working-directory: ${{ env.PS_DIR }}/tests/UI
run: |
npx playwright install chromium
if: ${{ inputs.base_branch == '8.0.x' || inputs.base_branch == '8.1.x' }}
run: npx playwright install chromium

- name: Install browsers
working-directory: ${{ env.PS_DIR }}/tests/UI
if: inputs.base_branch == 'develop'
run: npx playwright install chrome-beta

- name: Run campaign ${{ inputs.test_command }} on prebuilt shop
uses: ./custom_actions/.github/workflows/actions/run-tests
Expand Down