File tree Expand file tree Collapse file tree 1 file changed +21
-12
lines changed Expand file tree Collapse file tree 1 file changed +21
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : Playwright Tests
2
- on :
3
- push :
4
- branches : [ "async-requests" ]
5
- pull_request :
6
- branches : [ "async-requests" ]
2
+ on : [push, pull_request]
7
3
jobs :
8
4
test :
9
- timeout-minutes : 60
10
- runs-on : ubuntu-latest
5
+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
6
+ timeout-minutes : 15
7
+ runs-on : ubuntu-20.04
11
8
strategy :
12
9
matrix :
13
10
adapter : ['vue3']
@@ -16,15 +13,24 @@ jobs:
16
13
17
14
- uses : actions/setup-node@v4
18
15
with :
19
- node-version : lts/*
16
+ node-version : 21.7.3
20
17
21
18
- name : Build Inertia
22
19
run : |
23
20
rm package-lock.json
24
21
npm install
25
- cd packages/core && npm run build
26
- cd ../${{ matrix.adapter }} && npm run build
27
- cd tests && npm install
22
+ cd packages/core
23
+ npm run build
24
+
25
+ - name : Build Adapter
26
+ run : |
27
+ cd packages/${{ matrix.adapter }}
28
+ npm run build
29
+
30
+ - name : Install Test Dependencies
31
+ run : |
32
+ cd packages/${{ matrix.adapter }}/test-app
33
+ npm install
28
34
29
35
- name : Local-link @inertiajs/core
30
36
run : cd packages/core && npm link
35
41
- name : Install Playwright Browsers
36
42
run : cd packages/${{ matrix.adapter }} && npx playwright install --with-deps
37
43
44
+ - name : Install Playwright Test Dependencies
45
+ run : cd tests/app && npm install
46
+
38
47
- name : Run Playwright Tests
39
- run : cd packages/ ${{ matrix.adapter }} && npx playwright test
48
+ run : cd tests && PACKAGE= ${{ matrix.adapter }} npx playwright test
40
49
41
50
- uses : actions/upload-artifact@v4
42
51
if : ${{ !cancelled() }}
You can’t perform that action at this time.
0 commit comments