File tree Expand file tree Collapse file tree 4 files changed +34
-22
lines changed Expand file tree Collapse file tree 4 files changed +34
-22
lines changed Original file line number Diff line number Diff line change 5
5
push :
6
6
branches : [main]
7
7
paths :
8
+ - components
9
+ - projects
8
10
- simulator
9
11
- web
10
12
@@ -13,11 +15,10 @@ jobs:
13
15
runs-on : ubuntu-latest
14
16
15
17
steps :
16
- - uses : actions/checkout@v3
17
- - name : Use Node.js 20
18
- uses : actions/setup-node@v3
18
+ - uses : actions/checkout@v4
19
+ - uses : actions/setup-node@v4
19
20
with :
20
- node-version : 20
21
+ node-version : lts/*
21
22
22
23
- name : Cache node modules
23
24
id : cache-npm
30
31
key : ${{ hashFiles('**/package-lock.json') }}
31
32
32
33
- name : Install
33
- run : npm install
34
+ run : npm clean-install
35
+
36
+ - name : CI
37
+ run : |
38
+ npm run CI
39
+ npx playwright install --with-deps
40
+ npx playwright test
41
+ env :
42
+ CI : true
43
+ - uses : actions/upload-artifact@v4
44
+ if : always()
45
+ with :
46
+ name : playwright-report
47
+ path : playwright-report/
48
+ retention-days : 30
34
49
35
50
- name : CD
36
51
run : |
Original file line number Diff line number Diff line change 5
5
push :
6
6
branches : [main]
7
7
paths :
8
+ - components
9
+ - projects
8
10
- simulator
9
11
- extension
10
12
30
32
key : ${{ hashFiles('**/package-lock.json') }}
31
33
32
34
- name : Install
33
- run : npm install
35
+ run : npm clean- install
34
36
35
37
- name : CD
36
38
run : |
Original file line number Diff line number Diff line change 1
1
name : Playwright Tests
2
2
on :
3
+ workflow_dispatch :
3
4
push :
4
5
branches : [main]
5
6
pull_request :
13
14
- uses : actions/setup-node@v4
14
15
with :
15
16
node-version : lts/*
16
- - name : Install dependencies
17
- run : npm ci
18
-
19
17
- name : Cache node modules
20
18
id : cache-npm
21
19
uses : actions/cache@v3
@@ -31,18 +29,17 @@ jobs:
31
29
continue-on-error : true
32
30
run : npm list
33
31
34
- - name : Install
35
- run : npm install
32
+ - name : Install dependencies
33
+ run : npm clean- install
36
34
37
35
- name : CI
38
- run : npm run ci
36
+ run : |
37
+ npm run ci
38
+ npx playwright install --with-deps
39
+ npx playwright test
39
40
env :
40
41
CI : true
41
42
42
- - name : Install Playwright Browsers
43
- run : npx playwright install --with-deps
44
- - name : Run Playwright tests
45
- run : npx playwright test
46
43
- uses : actions/upload-artifact@v4
47
44
if : always()
48
45
with :
Original file line number Diff line number Diff line change @@ -2,19 +2,17 @@ name: Run Workspace Tests
2
2
3
3
on :
4
4
pull_request :
5
- branches : ["main", "pwa-main" ]
5
+ branches : ["main"]
6
6
7
7
jobs :
8
8
all :
9
9
runs-on : ubuntu-latest
10
10
11
11
steps :
12
- - uses : actions/checkout@v3
13
-
14
- - name : Use Node.js 20
15
- uses : actions/setup-node@v3
12
+ - uses : actions/checkout@v4
13
+ - uses : actions/setup-node@v4
16
14
with :
17
- node-version : 20
15
+ node-version : lts/*
18
16
19
17
- name : Cache node modules
20
18
id : cache-npm
You can’t perform that action at this time.
0 commit comments