-
Notifications
You must be signed in to change notification settings - Fork 26
38 lines (33 loc) · 1.39 KB
/
e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 }}