-
-
Notifications
You must be signed in to change notification settings - Fork 446
56 lines (46 loc) · 1.46 KB
/
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
47
48
49
50
51
52
53
54
55
56
name: Playwright Tests
on: [push, pull_request]
jobs:
test:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
timeout-minutes: 15
runs-on: ubuntu-20.04
strategy:
matrix:
adapter: ['vue3', 'react', 'svelte']
env:
PACKAGE: ${{ matrix.adapter }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21.7.3
- name: Build Inertia
run: |
npm install
cd packages/core
npm run build
- name: Build Adapter
run: |
cd packages/${{ matrix.adapter }}
npm run build
- name: Install Test Dependencies
run: |
cd packages/${{ matrix.adapter }}/test-app
npm install
- name: Local-link @inertiajs/core
run: cd packages/core && npm link
- name: Local-link @inertiajs/${{ matrix.adapter }}
run: cd packages/${{ matrix.adapter }} && npm link
- name: Install Playwright Browsers
run: cd packages/${{ matrix.adapter }} && npx playwright install --with-deps
- name: Install Playwright Test Dependencies
run: cd tests/app && npm install
- name: Run Playwright Tests
run: cd tests && npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: packages/${{ matrix.adapter }}/playwright-report/
retention-days: 30