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)