Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: use node 20 instead of 18 on CI (#37564)

Yury Semikhatsky23dc415b363e
diff --git a/.github/workflows/create_test_report.yml b/.github/workflows/create_test_report.yml
index 9fbb88b2ae..5afe85e0c7 100644
--- a/.github/workflows/create_test_report.yml
+++ b/.github/workflows/create_test_report.yml
@@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
- node-version: 18
+ node-version: 20
- run: npm ci
env:
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
diff --git a/.github/workflows/infra.yml b/.github/workflows/infra.yml
index bd9d2262de..fa6f958a57 100644
--- a/.github/workflows/infra.yml
+++ b/.github/workflows/infra.yml
@@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
- node-version: 18
+ node-version: 20
- run: npm ci
- run: npm run build
- run: npx playwright install --with-deps
@@ -43,7 +43,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
- node-version: 18
+ node-version: 20
- uses: actions/setup-python@v6
with:
python-version: '3.11'
diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml
index 6944d7388b..27dbe70a5e 100644
--- a/.github/workflows/publish_release.yml
+++ b/.github/workflows/publish_release.yml
@@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
- node-version: 18
+ node-version: 20
registry-url: 'https://registry.npmjs.org'
# Ensure npm 11.5.1 or later is installed (for OIDC npm publishing)
- name: Update npm
@@ -74,7 +74,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
- node-version: 18
+ node-version: 20
- uses: actions/create-github-app-token@v2
id: app-token
with:
diff --git a/.github/workflows/publish_release_docker.yml b/.github/workflows/publish_release_docker.yml
index 061e70e0b9..f038bd5aad 100644
--- a/.github/workflows/publish_release_docker.yml
+++ b/.github/workflows/publish_release_docker.yml
@@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
- node-version: 18
+ node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Set up Docker QEMU for arm64 docker builds
uses: docker/setup-qemu-action@v3
diff --git a/.github/workflows/roll_browser_into_playwright.yml b/.github/workflows/roll_browser_into_playwright.yml
index ecf8b27f94..154f52feaf 100644
--- a/.github/workflows/roll_browser_into_playwright.yml
+++ b/.github/workflows/roll_browser_into_playwright.yml
@@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
- node-version: 18
+ node-version: 20
- run: npm ci
- run: npm run build
- name: Install dependencies
diff --git a/.github/workflows/roll_driver_nodejs.yml b/.github/workflows/roll_driver_nodejs.yml
index 4da2cf0114..baafef164a 100644
--- a/.github/workflows/roll_driver_nodejs.yml
+++ b/.github/workflows/roll_driver_nodejs.yml
@@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
- node-version: 18
+ node-version: 20
- run: node utils/build/update-playwright-driver-version.mjs
- name: Prepare branch
id: prepare-branch
diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.yml
index 9037cf31ae..07c5b40867 100644
--- a/.github/workflows/tests_primary.yml
+++ b/.github/workflows/tests_primary.yml
@@ -146,7 +146,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
- node-version: 18
+ node-version: 20
- run: npm ci
- run: npm run build
@@ -182,7 +182,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
- node-version: 18
+ node-version: 20
- run: npm ci
env:
DEBUG: pw:install
diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.yml
index 30cb4cb856..cf7f678370 100644
--- a/.github/workflows/tests_secondary.yml
+++ b/.github/workflows/tests_secondary.yml
@@ -299,7 +299,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
- node-version: 18
+ node-version: 20
- run: npm ci
- run: npm run build
- run: utils/build/build-playwright-driver.sh