End-to-end testing #2152
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: End-to-end testing | |
on: | |
deployment_status: | |
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 }} |