mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Build: Only install Playwright dependencies when needed
PR gh-5190 added support for running tests on Playwright WebKit
in CI. For efficiency reasons, Playwright dependencies are only
installed for the `test:browser` npm script. However, that same
script is also used for Firefox ESR testing.
This change makes Playwright dependencies installed only for cases
where `WebKitHeadless` exists on the list of tested browsers.
Closes gh-5204
Ref gh-5190
(cherry picked from commit e77bd9d64f
)
This commit is contained in:
parent
98dd622a55
commit
212b6a4fce
2
.github/workflows/node.js.yml
vendored
2
.github/workflows/node.js.yml
vendored
@ -69,7 +69,7 @@ jobs:
|
||||
|
||||
- name: Install Playwright dependencies
|
||||
run: npx playwright-webkit install-deps
|
||||
if: "matrix.NPM_SCRIPT == 'test:browser'"
|
||||
if: "matrix.NPM_SCRIPT == 'test:browser' && contains(matrix.BROWSERS, 'WebkitHeadless')"
|
||||
|
||||
- name: Run tests
|
||||
env:
|
||||
|
Loading…
Reference in New Issue
Block a user