Skip to content

Commit

Permalink
Add support for Node.js 22
Browse files Browse the repository at this point in the history
  • Loading branch information
giggio committed Apr 30, 2024
1 parent bf08e9f commit 220533a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion testInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 220533a

Please sign in to comment.