Skip to content

Commit 396d5d0

Browse files
committed
reorder setup
1 parent 3a568c5 commit 396d5d0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/browser-tests.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)