-
Notifications
You must be signed in to change notification settings - Fork 388
33 lines (33 loc) · 922 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
name: Playwright
on:
deployment_status:
jobs:
tests:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Install dependencies
run: yarn
- name: Install Playwright
run: npx playwright install --with-deps
- name: Waiting for 200 from the Vercel preview
uses: patrickedqvist/wait-for-vercel-preview@v1.2.0
id: waitFor200
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 360
- name: Run Playwright tests
run: npx -p @playwright/test playwright test
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitFor200.outputs.url }}
- name: Upload test results
if: always()
uses: actions/upload-artifact@v2
with:
name: playwright-results
path: playwright-report
retention-days: 30