-
Notifications
You must be signed in to change notification settings - Fork 39
36 lines (27 loc) · 866 Bytes
/
e2e.yml
File metadata and controls
36 lines (27 loc) · 866 Bytes
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
name: E2E Test
on:
deployment_status:
jobs:
e2e-test:
name: Playwright
runs-on: ubuntu-latest
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
steps:
- name: Checkout Repo
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v2
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Install Playwright Dependencies
run: pnpm playwright install --with-deps
- name: Print BASE_URL
run: echo Running on ${{ github.event.deployment_status.target_url }}
- name: Run Playwright Test
run: pnpm test:e2e
env:
BASE_URL: ${{ github.event.deployment_status.target_url }}