Skip to content

Commit b0a44a2

Browse files
Peter Rushforthprushforth
authored andcommitted
Update node to v22 LTS
Add playwright browser caching Prevent npm ci from installing browsers Ignore postinstall scripts
1 parent e5f6d14 commit b0a44a2

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/ci-testing.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,20 @@ jobs:
1212
- name: Use Node.js
1313
uses: actions/setup-node@v4
1414
with:
15-
node-version: latest
16-
- run: sudo apt-get install xvfb
17-
- run: npm install
18-
- run: npx playwright install --with-deps
19-
- run: npm install -g grunt-cli
20-
- run: grunt default
15+
node-version: 22
16+
cache: npm
17+
- run: npm ci --ignore-scripts
18+
- name: Cache Playwright browsers
19+
id: playwright-cache
20+
uses: actions/cache@v4
21+
with:
22+
path: ~/.cache/ms-playwright
23+
key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
24+
- run: npx playwright install --with-deps
25+
if: steps.playwright-cache.outputs.cache-hit != 'true'
26+
- run: npx playwright install-deps
27+
if: steps.playwright-cache.outputs.cache-hit == 'true'
28+
- run: npx grunt default
2129
- run: xvfb-run --auto-servernum -- npx playwright test --grep-invert="popupTabNavigation\.test\.js|layerContextMenuKeyboard\.test\.js" --workers=1 --retries=3
22-
# - run: xvfb-run --auto-servernum -- npx playwright test --grep="popupTabNavigation\.test\.js|layerContextMenuKeyboard\.test\.js" --workers=1 --retries=3
23-
# - run: xvfb-run --auto-servernum -- npm run jest
2430
env:
2531
CI: true

0 commit comments

Comments
 (0)