-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1015 Bytes
/
playwright.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
41
42
43
44
45
46
name: Playwright tests
on:
push:
branches: ["preview"]
pull_request:
branches: ["main"]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Get code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "14.x"
- name: Setup Playwright
run: npx playwright install --with-deps
- name: Install dependencies
run: yarn install
- name: Wait for Vercel Deploy
uses: patrickedqvist/wait-for-vercel-preview@v1.2.0
id: wait-vercel
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 120
- name: E2E testing
run: yarn test --project=chromium
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.wait-vercel.outputs.url }}
- uses: actions/upload-artifact@v2
if: always()
with:
name: playwright-report
path: .tests/
retention-days: 30