@@ -12,82 +12,82 @@ concurrency:
12
12
13
13
jobs :
14
14
# Install & caches "fresh" node_modules
15
- npm-install :
16
- name : Install npm deps
17
- runs-on : ubuntu-latest
18
- strategy :
19
- matrix :
20
- node-version : [20.x]
21
-
22
- steps :
23
- - uses : actions/checkout@v4
24
- - name : Use Node.js ${{ matrix.node-version }}
25
- uses : actions/setup-node@v3
26
- with :
27
- node-version : ${{ matrix.node-version }}
28
- cache : ' npm'
29
- cache-dependency-path : |
30
- package-lock.json
31
- source/package-lock.json
32
- examples/package-lock.json
33
- www/package-lock.json
34
-
35
- - name : Cache node_modules for root
36
- id : cache-node-modules-root
37
- uses : actions/cache@v3
38
- with :
39
- path : node_modules
40
- key : node-modules-root-${{ github.run_id }}
41
-
42
- - name : Cache node_modules for source
43
- id : cache-node-modules-source
44
- uses : actions/cache@v3
45
- with :
46
- path : source/node_modules
47
- key : node-modules-source-${{ github.run_id }}
48
-
49
- - name : Cache node_modules for examples
50
- id : cache-node-modules-examples
51
- uses : actions/cache@v3
52
- with :
53
- path : examples/node_modules
54
- key : node-modules-examples-${{ github.run_id }}
55
-
56
- - name : Cache node_modules for www
57
- id : cache-node-modules-www
58
- uses : actions/cache@v3
59
- with :
60
- path : www/node_modules
61
- key : node-modules-www-${{ github.run_id }}
62
-
63
- - name : Cache node_modules for www/dataserver
64
- id : cache-node-modules-www-dataserver
65
- uses : actions/cache@v3
66
- with :
67
- path : www/dataserver/node_modules
68
- key : node-modules-www-dataserver-${{ github.run_id }}
69
-
70
- - name : Execute 'npm ci' in monorepo
71
- run : npm ci
72
-
73
- - name : Execute 'npm i' in www/dataserver
74
- run : npm run www-dataserver:install
75
-
76
- - name : Get installed Playwright version
77
- id : playwright-version
78
- run : echo "::set-output name=version::$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')"
79
- working-directory : examples
80
-
81
- - name : Cache browser binaries for Playwright
82
- id : playwright-cache
83
- uses : actions/cache@v3
84
- with :
85
- path : ' ~/.cache/ms-playwright'
86
- key : ' ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
15
+ # npm-install:
16
+ # name: Install npm deps
17
+ # runs-on: ubuntu-latest
18
+ # strategy:
19
+ # matrix:
20
+ # node-version: [20.x]
21
+
22
+ # steps:
23
+ # - uses: actions/checkout@v4
24
+ # - name: Use Node.js ${{ matrix.node-version }}
25
+ # uses: actions/setup-node@v3
26
+ # with:
27
+ # node-version: ${{ matrix.node-version }}
28
+ # cache: 'npm'
29
+ # cache-dependency-path: |
30
+ # package-lock.json
31
+ # source/package-lock.json
32
+ # examples/package-lock.json
33
+ # www/package-lock.json
34
+
35
+ # - name: Cache node_modules for root
36
+ # id: cache-node-modules-root
37
+ # uses: actions/cache@v3
38
+ # with:
39
+ # path: node_modules
40
+ # key: node-modules-root-${{ github.run_id }}
41
+
42
+ # - name: Cache node_modules for source
43
+ # id: cache-node-modules-source
44
+ # uses: actions/cache@v3
45
+ # with:
46
+ # path: source/node_modules
47
+ # key: node-modules-source-${{ github.run_id }}
48
+
49
+ # - name: Cache node_modules for examples
50
+ # id: cache-node-modules-examples
51
+ # uses: actions/cache@v3
52
+ # with:
53
+ # path: examples/node_modules
54
+ # key: node-modules-examples-${{ github.run_id }}
55
+
56
+ # - name: Cache node_modules for www
57
+ # id: cache-node-modules-www
58
+ # uses: actions/cache@v3
59
+ # with:
60
+ # path: www/node_modules
61
+ # key: node-modules-www-${{ github.run_id }}
62
+
63
+ # - name: Cache node_modules for www/dataserver
64
+ # id: cache-node-modules-www-dataserver
65
+ # uses: actions/cache@v3
66
+ # with:
67
+ # path: www/dataserver/node_modules
68
+ # key: node-modules-www-dataserver-${{ github.run_id }}
69
+
70
+ # - name: Execute 'npm ci' in monorepo
71
+ # run: npm ci
72
+
73
+ # - name: Execute 'npm i' in www/dataserver
74
+ # run: npm run www-dataserver:install
75
+
76
+ # - name: Get installed Playwright version
77
+ # id: playwright-version
78
+ # run: echo "::set-output name=version::$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')"
79
+ # working-directory: examples
80
+
81
+ # - name: Cache browser binaries for Playwright
82
+ # id: playwright-cache
83
+ # uses: actions/cache@v3
84
+ # with:
85
+ # path: '~/.cache/ms-playwright'
86
+ # key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
87
87
88
88
# Compiles all TS files in the monorepo
89
89
ts-check :
90
- needs : npm-install
90
+ # needs: npm-install
91
91
name : Compile source code
92
92
runs-on : ubuntu-latest
93
93
strategy :
@@ -101,46 +101,49 @@ jobs:
101
101
with :
102
102
node-version : ${{ matrix.node-version }}
103
103
104
- - name : Load cached node_modules for root
105
- id : cache-node-modules-root
106
- uses : actions/cache@v3
107
- with :
108
- path : node_modules
109
- key : node-modules-root-${{ github.run_id }}
110
-
111
- - name : Load cached node_modules for source
112
- id : cache-node-modules-source
113
- uses : actions/cache@v3
114
- with :
115
- path : source/node_modules
116
- key : node-modules-source-${{ github.run_id }}
117
-
118
- - name : Load cached node_modules for examples
119
- id : cache-node-modules-examples
120
- uses : actions/cache@v3
121
- with :
122
- path : examples/node_modules
123
- key : node-modules-examples-${{ github.run_id }}
124
-
125
- - name : Load cached node_modules for www
126
- id : cache-node-modules-www
127
- uses : actions/cache@v3
128
- with :
129
- path : www/node_modules
130
- key : node-modules-www-${{ github.run_id }}
104
+ - name : Execute 'npm ci' in monorepo
105
+ run : npm ci
131
106
132
- - name : Load cached node_modules for www/dataserver
133
- id : cache-node-modules-www-dataserver
134
- uses : actions/cache@v3
135
- with :
136
- path : www/dataserver/node_modules
137
- key : node-modules-www-dataserver-${{ github.run_id }}
107
+ # - name: Load cached node_modules for root
108
+ # id: cache-node-modules-root
109
+ # uses: actions/cache@v3
110
+ # with:
111
+ # path: node_modules
112
+ # key: node-modules-root-${{ github.run_id }}
113
+
114
+ # - name: Load cached node_modules for source
115
+ # id: cache-node-modules-source
116
+ # uses: actions/cache@v3
117
+ # with:
118
+ # path: source/node_modules
119
+ # key: node-modules-source-${{ github.run_id }}
120
+
121
+ # - name: Load cached node_modules for examples
122
+ # id: cache-node-modules-examples
123
+ # uses: actions/cache@v3
124
+ # with:
125
+ # path: examples/node_modules
126
+ # key: node-modules-examples-${{ github.run_id }}
127
+
128
+ # - name: Load cached node_modules for www
129
+ # id: cache-node-modules-www
130
+ # uses: actions/cache@v3
131
+ # with:
132
+ # path: www/node_modules
133
+ # key: node-modules-www-${{ github.run_id }}
134
+
135
+ # - name: Load cached node_modules for www/dataserver
136
+ # id: cache-node-modules-www-dataserver
137
+ # uses: actions/cache@v3
138
+ # with:
139
+ # path: www/dataserver/node_modules
140
+ # key: node-modules-www-dataserver-${{ github.run_id }}
138
141
139
142
- name : Compile source code in monorepo
140
143
run : npm run ci:ts-check
141
144
142
145
run-tests :
143
- needs : npm-install
146
+ # needs: npm-install
144
147
name : Run tests
145
148
runs-on : ubuntu-latest
146
149
env :
@@ -156,39 +159,57 @@ jobs:
156
159
with :
157
160
node-version : ${{ matrix.node-version }}
158
161
159
- - name : Load cached node_modules for root
160
- id : cache-node-modules-root
161
- uses : actions/cache@v3
162
- with :
163
- path : node_modules
164
- key : node-modules-root-${{ github.run_id }}
165
-
166
- - name : Load cached node_modules for source
167
- id : cache-node-modules-source
168
- uses : actions/cache@v3
169
- with :
170
- path : source/node_modules
171
- key : node-modules-source-${{ github.run_id }}
162
+ - name : Execute 'npm ci' in monorepo
163
+ run : npm ci
172
164
173
- - name : Load cached node_modules for examples
174
- id : cache-node-modules-examples
175
- uses : actions/cache@v3
176
- with :
177
- path : examples/node_modules
178
- key : node-modules-examples-${{ github.run_id }}
165
+ - name : Execute 'npm i' in www/dataserver
166
+ run : npm run www-dataserver:install
179
167
180
168
- name : Get installed Playwright version
181
169
id : playwright-version
182
170
run : echo "::set-output name=version::$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')"
183
171
working-directory : examples
184
172
185
- - name : Load cached browser binaries for Playwright
173
+ - name : Cache browser binaries for Playwright
186
174
id : playwright-cache
187
175
uses : actions/cache@v3
188
176
with :
189
177
path : ' ~/.cache/ms-playwright'
190
178
key : ' ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
191
179
180
+ # - name: Load cached node_modules for root
181
+ # id: cache-node-modules-root
182
+ # uses: actions/cache@v3
183
+ # with:
184
+ # path: node_modules
185
+ # key: node-modules-root-${{ github.run_id }}
186
+
187
+ # - name: Load cached node_modules for source
188
+ # id: cache-node-modules-source
189
+ # uses: actions/cache@v3
190
+ # with:
191
+ # path: source/node_modules
192
+ # key: node-modules-source-${{ github.run_id }}
193
+
194
+ # - name: Load cached node_modules for examples
195
+ # id: cache-node-modules-examples
196
+ # uses: actions/cache@v3
197
+ # with:
198
+ # path: examples/node_modules
199
+ # key: node-modules-examples-${{ github.run_id }}
200
+
201
+ # - name: Get installed Playwright version
202
+ # id: playwright-version
203
+ # run: echo "::set-output name=version::$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')"
204
+ # working-directory: examples
205
+
206
+ # - name: Load cached browser binaries for Playwright
207
+ # id: playwright-cache
208
+ # uses: actions/cache@v3
209
+ # with:
210
+ # path: '~/.cache/ms-playwright'
211
+ # key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
212
+
192
213
- name : Build test app
193
214
run : npm run ci:test:build
194
215
0 commit comments