From 4e953aa5de7a2891c2f78f04592ccba84f3b7f83 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 12 Feb 2025 15:46:40 +0100 Subject: [PATCH] GitHub Actions: Add Node.js v22 to the testing --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 314b33a..c627a71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest, windows-latest, macOS-latest ] - node-version: [ 8.x, 10.x, 12.x, 13.x, 14.x, 16.x, 18.x, 20.x ] + node-version: [ 8.x, 10.x, 12.x, 13.x, 14.x, 16.x, 18.x, 20.x , 22.x ] exclude: # exclude Node.js 8.x on ubuntu-latest # node-gyp fails during in gyp's Python code: @@ -48,13 +48,13 @@ jobs: - name: Use Node.js ${{ matrix.node-version }} # https://github.com/actions/setup-node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install pcsclite run: sudo apt-get install -y libpcsclite1 libpcsclite-dev pcscd - if: matrix.os == 'ubuntu-latest' + if: runner.os == 'Linux' - name: Compile run: npm install --verbose @@ -63,4 +63,4 @@ jobs: run: npm test # TODO: enable once tests do not get stuck on Windows # Mocha and Sinon.JS support only Node.js >=14.x - if: matrix.os != 'windows-latest' && contains(fromJSON('["14.x", "16.x", "18.x", "20.x"]'), matrix.node-version) + if: runner.os != 'Windows' && contains(fromJSON('["14.x", "16.x", "18.x", "20.x", "22.x"]'), matrix.node-version)