From 220533a59e5663bdc073de92bc7e68d0f4df4e6e Mon Sep 17 00:00:00 2001 From: Giovanni Bassi Date: Tue, 30 Apr 2024 20:05:10 -0300 Subject: [PATCH] Add support for Node.js 22 --- .devcontainer/Dockerfile | 2 +- .github/workflows/build.yml | 8 ++++---- testInstall.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index f403ade..1d1fe75 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -14,6 +14,6 @@ RUN echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ && chmod 0440 /etc/sudoers.d/$USERNAME USER $USERNAME RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash -RUN [ "/bin/bash", "-c", "source $HOME/.nvm/nvm.sh && nvm i --no-progress 18.18.0 && nvm i --no-progress 20.7.0 && nvm i --no-progress 21.1.0" ] +RUN [ "/bin/bash", "-c", "source $HOME/.nvm/nvm.sh && nvm i --no-progress 18.18.0 && nvm i --no-progress 20.7.0 && nvm i --no-progress 21.1.0 && nvm i --no-progress 22.0.0" ] RUN [ "/bin/bash", "-c", "source $HOME/.nvm/nvm.sh && nvm alias default 21" ] ENV DEBIAN_FRONTEND=dialog diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0fdb417..053bc04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: strategy: fail-fast: false matrix: - node: ["18.x", "20.x", "21.x"] + node: ["18.x", "20.x", "21.x", "22.x"] runner: ["windows-latest", "ubuntu-latest", "macos-latest"] steps: - uses: actions/checkout@v4 @@ -102,7 +102,7 @@ jobs: strategy: fail-fast: false matrix: - node: ["20", "21"] + node: ["20", "21", "22"] steps: - uses: actions/checkout@v4 - uses: uraimo/run-on-arch-action@v2.7.1 @@ -146,7 +146,7 @@ jobs: strategy: fail-fast: false matrix: - node: ["18", "20", "21"] + node: ["18", "20", "21", "22"] steps: - uses: actions/checkout@v4 - uses: uraimo/run-on-arch-action@v2.7.1 @@ -275,7 +275,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 22.x registry-url: "https://registry.npmjs.org" - run: npm publish --provenance --access public env: diff --git a/testInstall.js b/testInstall.js index b2114e0..e6d32a4 100755 --- a/testInstall.js +++ b/testInstall.js @@ -6,7 +6,7 @@ const os = require('os'); const path = require('path'); const fs = require('fs'); const spawnSync = require('child_process').spawnSync; -const versions = ['18', '20', '21']; +const versions = ['18', '20', '21', '22']; const tempInstallPath = path.resolve(os.tmpdir(), 'chromedriver-test'); const packedFile = path.resolve(tempInstallPath, 'chromedriver.tgz');