File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -85,23 +85,23 @@ jobs:
8585
8686 echo "WordPress setup complete!"
8787
88+ - name : Cache node_modules
89+ id : node-modules-cache
90+ uses : actions/cache@v4
91+ with :
92+ path : admin/node_modules
93+ key : ${{ runner.os }}-node-modules-${{ hashFiles('admin/package-lock.json') }}
94+
95+ - name : Install node dependencies
96+ if : steps.node-modules-cache.outputs.cache-hit != 'true'
97+ run : cd admin && npm install
98+
8899 - name : Install playwright dependencies
89100 run : |
90101 cd admin
91102 sudo npx playwright install-deps
92103 npx playwright install
93104
94- # - name: Cache node_modules
95- # id: node-modules-cache
96- # uses: actions/cache@v4
97- # with:
98- # path: admin/node_modules
99- # key: ${{ runner.os }}-node-modules-${{ hashFiles('admin/package-lock.json') }}
100-
101- - name : Install node dependencies
102- # if: steps.node-modules-cache.outputs.cache-hit != 'true'
103- run : cd admin && npm install --unsafe-perm
104-
105105 - name : Run Non-Kit Tests on Chrome
106106 run : cd admin && npm run test:browser-mocked-legacy-cdn-chrome
107107
You can’t perform that action at this time.
0 commit comments