File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments