4848 with :
4949 use-matrix : true
5050
51- run-plugin-unit-tests :
52- if : needs.check-plugin-release-tag.outputs.is_plugin_tag == 'true'
53- needs : check-plugin-release-tag
54- runs-on : ubuntu-latest
55- steps :
56- - uses : actions/checkout@v4
57-
58- - name : Use Node.js ${{ vars.DEFAULT_NODE_VERSION }}
59- uses : actions/setup-node@v4
60- with :
61- node-version : ${{ vars.DEFAULT_NODE_VERSION }}
62-
63- - name : Install Playwright dependencies
64- run : npx playwright install-deps webkit
65-
66- - name : Try to restore modern node_modules cache
67- id : node_modules_cache
68- uses : actions/cache@v4
69- with :
70- path : node_modules
71- key : ${{ runner.os }}-modern-node-modules-${{ hashFiles('**/package-lock.json') }}
72-
73- - name : Install dependencies
74- if : steps.node_modules_cache.outputs.cache-hit != 'true'
75- run : npm ci
76-
77- - name : Install playwright browsers
78- run : npx playwright install
79-
80- - name : Build package
81- run : npm run build
82-
83- - name : Run modern jest tests (target plugin)
84- working-directory : packages/${{ needs.check-plugin-release-tag.outputs.plugin_name }}
85- run : npm test
86-
8751 publish-npm-core :
8852 if : needs.check-core-release-tag.outputs.is_semver_tag == 'true'
8953 needs : [check-core-release-tag, run-core-unit-tests]
@@ -256,7 +220,7 @@ jobs:
256220
257221 publish-npm-plugin :
258222 if : needs.check-plugin-release-tag.outputs.is_plugin_tag == 'true'
259- needs : [check-plugin-release-tag, run-plugin-unit-tests ]
223+ needs : [check-plugin-release-tag]
260224 runs-on : ubuntu-latest
261225 steps :
262226 - uses : actions/checkout@v4
@@ -272,15 +236,7 @@ jobs:
272236 - name : Install Playwright dependencies
273237 run : npx playwright install-deps webkit
274238
275- - name : Try to restore modern node_modules cache
276- id : node_modules_cache
277- uses : actions/cache@v4
278- with :
279- path : node_modules
280- key : ${{ runner.os }}-modern-node-modules-${{ hashFiles('**/package-lock.json') }}
281-
282239 - name : Install dependencies
283- if : steps.node_modules_cache.outputs.cache-hit != 'true'
284240 run : npm ci
285241
286242 - name : Install playwright browsers
0 commit comments