e2e #6932
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| url: | |
| required: false | |
| description: The URL to run the test suite against. If omitted, it runs against all. | |
| type: string | |
| deployment_status: | |
| jobs: | |
| e2e: | |
| environment: | |
| name: ${{ github.event.deployment.environment || 'Production' }} | |
| url: ${{ github.event.inputs.url || github.event.deployment_status.environment_url }} | |
| if: github.event.deployment_status.state == 'success' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/-1 | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - run: pnpm exec playwright install | |
| - name: Run Playwright E2E tests | |
| run: pnpm test:browser | |
| env: | |
| BASE_URL: ${{ github.event.inputs.url || github.event.deployment_status.environment_url }} | |
| lighthouse: | |
| environment: | |
| name: ${{ github.event.deployment.environment || 'Production' }} | |
| url: ${{ github.event.inputs.url || github.event.deployment_status.environment_url }} | |
| if: github.event.deployment_status.state == 'success' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Audit URLs using Lighthouse | |
| uses: treosh/lighthouse-ci-action@v12 | |
| with: | |
| urls: ${{ github.event.inputs.url || github.event.deployment_status.environment_url }} | |
| uploadArtifacts: true | |
| temporaryPublicStorage: true | |
| env: | |
| LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
| warmup: | |
| environment: | |
| name: ${{ github.event.deployment.environment || 'Production' }} | |
| url: ${{ github.event.inputs.url || github.event.deployment_status.environment_url }} | |
| if: github.event.deployment_status.state == 'success' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: warmup jobs, sponsors and modules | |
| run: | | |
| curl -sS $BASE_URL/api/jobs | |
| curl -sS $BASE_URL/api/sponsors | |
| curl -sS $BASE_URL/api/v1/modules | |
| env: | |
| BASE_URL: ${{ github.event.inputs.url || github.event.deployment_status.environment_url }} |