-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 897 Bytes
/
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
39
40
name: End-to-end Tests
on:
push:
branches: [main]
pull_request:
types: [labeled]
env:
NODE_ENV: testing
jobs:
test:
if: ${{ (github.event.label.name == 'run visual tests') || (github.ref == 'refs/heads/main') }}
runs-on: ubuntu-22.04
container:
image: mcr.microsoft.com/playwright:v1.40.1-jammy
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
uses: bahmutov/[email protected]
with:
useRollingCache: true
- name: Run Playwright tests
run: HOME=/root yarn playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30