aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2023-03-20 17:13:31 +0100
committerGitHub <noreply@github.com>2023-03-20 17:13:31 +0100
commite77bd9d64fc696cadfe1f8c9ebb50d7609a97b07 (patch)
treeaa0fe3ea3e27594234284f243f537bfb08f8d42e
parentce264e0789116e37fe371503537a217c038dfae8 (diff)
downloadjquery-e77bd9d64fc696cadfe1f8c9ebb50d7609a97b07.tar.gz
jquery-e77bd9d64fc696cadfe1f8c9ebb50d7609a97b07.zip
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
-rw-r--r--.github/workflows/node.js.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
index b773404e5..4096efffe 100644
--- a/.github/workflows/node.js.yml
+++ b/.github/workflows/node.js.yml
@@ -73,7 +73,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: