Skip to content

End-to-end testing #2060

End-to-end testing

End-to-end testing #2060

Workflow file for this run

name: End-to-end testing
on:
deployment_status:
env:
NEXT_PUBLIC_PREVIEW_EXPLORER_API_URL: ${{vars.NEXT_PUBLIC_PREVIEW_EXPLORER_API_URL}}
jobs:
e2e:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && contains(github.event.deployment_status.environment_url, 'rollups-explorer-sepolia')
timeout-minutes: 30
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.47.0-jammy
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 22.6.0
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install Playwright
run: yarn playwright install --with-deps
- name: Run e2e tests
run: yarn test:e2e
id: e2e
continue-on-error: true
env:
E2E_BASE_URL: ${{ github.event.deployment_status.environment_url }}
HOME: /root
- name: Update check status to the outcome
run: yarn node reportGitHubCheckStatus.mjs "End-to-end (${{ github.event.deployment_status.environment }})" ${{ github.sha }} ${{ steps.e2e.outcome }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}