E2E Tests #1250
Workflow file for this run
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: E2E Tests | |
on: | |
deployment_status: | |
jobs: | |
e2e-tests: | |
if: | | |
github.event_name == 'deployment_status' && | |
github.event.deployment_status.state == 'success' && | |
contains(github.event.deployment_status.environment_url, 'app-frontend-v3') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
# For now, we only need Chromium. | |
- name: Install Playwright Browsers | |
run: yarn playwright install chromium | |
- name: Setup Synpress wallet cache | |
# https://synpress.io/docs/guides/ci#ci | |
run: xvfb-run yarn synpress ./e2e/wallet-setup | |
env: | |
E2E_DAPP_URL: ${{ github.event.deployment_status.environment_url }} | |
- name: Run tests | |
# https://synpress.io/docs/guides/ci#ci | |
run: xvfb-run yarn test:e2e:headful | |
env: | |
E2E_DAPP_URL: ${{ github.event.deployment_status.environment_url }} | |
- name: Archive Playwright report | |
uses: actions/upload-artifact@v4 | |
if: success() || failure() | |
with: | |
name: playwright-report-headful | |
path: | | |
playwright-report/ | |
if-no-files-found: error |