From 88d9c710b0a197cf95c54c094dd48c8a33cdf7c1 Mon Sep 17 00:00:00 2001 From: Simone Busoli Date: Tue, 10 Sep 2024 13:39:02 +0200 Subject: [PATCH] chore: drop Node.js less than 20 (#310) Also, switch to using pkgjs action in CI workflow to handle Node.js versions --- .github/workflows/ci.yml | 20 ++++---------------- package.json | 2 +- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 238bb90..d4b489e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,22 +6,10 @@ on: pull_request: jobs: build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: - - 14 - - 16 - - 18 - - 20 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - run: npm i - - run: npm run lint - - run: npm run test + uses: pkgjs/action/.github/workflows/node-test.yaml@v0 + with: + strategy-fail-fast: true + test-command: npm run lint && npm run test automerge: needs: build runs-on: ubuntu-latest diff --git a/package.json b/package.json index 1d3a7c7..101e1e0 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "src" ], "engines": { - "node": ">=14" + "node": ">=20" }, "tsd": { "directory": "./test/types"