From c14aff84feb606a42fa72acaf5b9d86708f470bd Mon Sep 17 00:00:00 2001 From: Silas Rech Date: Wed, 1 May 2024 11:01:23 +0200 Subject: [PATCH 1/2] Enable node 22 support --- .github/workflows/ci.yml | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3afcedf..4613053 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,13 +13,17 @@ jobs: strategy: fail-fast: false matrix: - node-version: [^14.19, ^16.15, ^18, ^20] + node-version: [^14.19, ^16.15, ^18, ^20, ^22] os: [ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + - if: runner.os == 'Windows' && matrix.node-version == '^22' + shell: bash + run: | + npm install -g npm - name: Install npm@8 for Node.js 14 if: matrix.node-version == '^14.19' run: npm install --global npm@^8 diff --git a/package.json b/package.json index 3160f9a..85c9a35 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "4.1.0", "description": "TypeScript provider for AVA", "engines": { - "node": "^14.19 || ^16.15 || ^18 || ^20" + "node": "^14.19 || ^16.15 || ^18 || ^20 || ^22" }, "files": [ "index.js" From 89bb17005bd5d4d0ad1ba6f8d186951d05692ee5 Mon Sep 17 00:00:00 2001 From: Silas Rech Date: Wed, 1 May 2024 11:01:27 +0200 Subject: [PATCH 2/2] Upgrade action versions --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4613053..4c4a4f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,8 +16,8 @@ jobs: node-version: [^14.19, ^16.15, ^18, ^20, ^22] os: [ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - if: runner.os == 'Windows' && matrix.node-version == '^22' @@ -29,7 +29,7 @@ jobs: run: npm install --global npm@^8 - run: npm install --no-audit - run: npm test - - uses: codecov/codecov-action@v2 + - uses: codecov/codecov-action@v4 with: files: coverage/lcov.info name: ${{ matrix.os }}/${{ matrix.node-version }}