-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.23 KB
/
end-to-end-testing-dataset-browser.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
name: End-to-end testing Dataset Browser
on:
pull_request:
branches: ["main"]
paths:
- "package.json"
- "apps/dataset-browser/**"
- ".github/workflows/end-to-end-testing-dataset-browser.yml"
- "packages/**"
jobs:
run-end-to-end-tests:
timeout-minutes: 10
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Wait for a successful Vercel Preview
uses: patrickedqvist/[email protected]
id: waitForVercelPreviewDeployment
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 600
environment: Preview – colonial-collections-dataset-browser
- name: Run Playwright tests
run: npm run test:e2e -w dataset-browser
env:
PLAYWRIGHT_BASE_URL: ${{ steps.waitForVercelPreviewDeployment.outputs.url }}
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: dataset-browser-playwright-report
path: apps/dataset-browser/playwright-report/
retention-days: 30