88 tags : [ "v*" ] # have tools scan this stable version
99 pull_request :
1010 workflow_dispatch :
11+ schedule :
12+ # schedule weekly tests, since dependencies are not intended to be locked
13+ # this means: at 23:42 on Fridays
14+ - cron : ' 42 23 * * 5'
1115
1216concurrency :
1317 group : ${{ github.workflow }}-${{ github.ref }}
@@ -40,10 +44,10 @@ jobs:
4044 uses : actions/setup-node@v3
4145 with :
4246 node-version : ${{ env.NODE_ACTIVE_LTS }}
43- cache : " npm"
44- cache-dependency-path : " **/package-lock.json"
47+ # cache: "npm"
48+ # cache-dependency-path: "**/package-lock.json"
4549 - name : setup project
46- run : npm ci --ignore-scripts --include=optional --loglevel=silly
50+ run : npm i --ignore-scripts --include=optional --loglevel=silly
4751 - name : build ${{ matrix.target }}
4852 run : npm run build:${{ matrix.target }}
4953 - name : artifact build result
@@ -67,10 +71,10 @@ jobs:
6771 uses : actions/setup-node@v3
6872 with :
6973 node-version : ${{ env.NODE_ACTIVE_LTS }}
70- cache : " npm"
71- cache-dependency-path : " **/package-lock.json"
74+ # cache: "npm"
75+ # cache-dependency-path: "**/package-lock.json"
7276 - name : setup project
73- run : npm ci --ignore-scripts --include=optional --loglevel=silly
77+ run : npm i --ignore-scripts --include=optional --loglevel=silly
7478 - name : make reports dir
7579 run : mkdir -p "$REPORTS_DIR"
7680 - name : test
@@ -123,15 +127,18 @@ jobs:
123127 uses : actions/setup-node@v3
124128 with :
125129 node-version : ${{ matrix.node-version }}
126- cache : " npm"
127- cache-dependency-path : " **/package-lock.json"
130+ # cache: "npm"
131+ # cache-dependency-path: "**/package-lock.json"
128132 - name : setup project
129133 shell : bash
130134 run : |
131135 set -ex
132- npm ci --ignore-scripts --include=optional --loglevel=silly
136+ ## dont install all the dev-packages, especially since some are not runnable on node 14.0.0
137+ npm i --ignore-scripts --include=optional --omit=dev --only=prod --loglevel=silly
133138 ## rebuild deps for which scripts were ignored, or partially installed - since "ignore-scripts" was used
134139 npm rebuild --loglevel=silly libxmljs2 || npm uninstall --no-save libxmljs2
140+ ## install the needed dev-deps
141+ npm i --no-save mocha c8 npm-run-all
135142 - name : fetch build artifact
136143 # see https://github.com/actions/download-artifact
137144 uses : actions/download-artifact@v3
@@ -171,7 +178,12 @@ jobs:
171178 with :
172179 node-version : ${{ env.NODE_ACTIVE_LTS }}
173180 - name : setup library
174- run : npm ci --ignore-scripts --omit=optional --loglevel=silly
181+ run : |
182+ set -ex
183+ ## dont install all the dev-packages, especially since some are not runnable on node 14.0.0
184+ npm i --ignore-scripts --omit=optional --omit=dev --loglevel=silly
185+ ## install the needed dev-deps
186+ npm i --no-save mocha c8 npm-run-all
175187 - name : fetch build artifact
176188 # see https://github.com/actions/download-artifact
177189 uses : actions/download-artifact@v3
@@ -253,7 +265,7 @@ jobs:
253265 - name : setup library
254266 run : |
255267 set -ex
256- npm ci --ignore-scripts --omit=dev --include=optional --loglevel=silly
268+ npm i --ignore-scripts --omit=dev --include=optional --loglevel=silly
257269 ## rebuild deps for which scripts were ignored, or partially installed - since "ignore-scripts" was used
258270 npm rebuild --loglevel=silly libxmljs2 || npm uninstall --no-save libxmljs2
259271 - name : setup example project
@@ -306,7 +318,7 @@ jobs:
306318 - name : setup library
307319 run : |
308320 set -ex
309- npm ci --ignore-scripts --omit=dev --include=optional --loglevel=silly
321+ npm i --ignore-scripts --omit=dev --include=optional --loglevel=silly
310322 ## rebuild deps for which scripts were ignored, or partially installed - since "ignore-scripts" was used
311323 npm rebuild --loglevel=silly libxmljs2 || npm uninstall --no-save libxmljs2
312324 - name : setup example project
@@ -354,7 +366,7 @@ jobs:
354366 name : dist.web
355367 path : dist.web
356368 - name : setup library
357- run : npm ci --ignore-scripts --omit=dev --include=optional --loglevel=silly
369+ run : npm i --ignore-scripts --omit=dev --include=optional --loglevel=silly
358370 - name : setup example project
359371 run : npm i --no-save --loglevel=silly
360372 working-directory : ${{ env.EXAMPLE_DIR }}
@@ -381,9 +393,9 @@ jobs:
381393 uses : actions/setup-node@v3
382394 with :
383395 node-version : ${{ env.NODE_ACTIVE_LTS }}
384- cache : " npm"
385- cache-dependency-path : " **/package-lock.json"
396+ # cache: "npm"
397+ # cache-dependency-path: "**/package-lock.json"
386398 - name : setup project
387- run : npm ci --ignore-scripts --loglevel=silly
399+ run : npm i --ignore-scripts --loglevel=silly
388400 - name : api-doc ${{ matrix.target }}
389401 run : npm run api-doc:${{ matrix.target }}
0 commit comments