forked from itaditya/solid-command-palette
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 913 Bytes
/
e2e.yml
File metadata and controls
33 lines (31 loc) · 913 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
name: E2E Tests
on: [deployment_status]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
if: github.event.deployment_status.state == 'success'
steps:
- name: Checkout commit
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm ci
- name: Install Playwright
run: pnpm dlx playwright install --with-deps
- name: Run E2E tests
run: pnpm run test:e2e:run
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}
- name: Save Test Results
uses: actions/upload-artifact@v2
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 2