From dd5d3d9fc6971fce75ce07f8bbdb775f369682f7 Mon Sep 17 00:00:00 2001 From: tim-kos Date: Mon, 19 Oct 2026 17:19:41 +0200 Subject: [PATCH] Test on supported Node versions in CI Node 12 is end of life, and the v1/v2 actions run on Node runtimes GitHub has deprecated for actions. Since CI no longer runs the Node versions the package still supports (>= 4), check that the library stays ES5 instead. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/test-node.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-node.yml b/.github/workflows/test-node.yml index 086e1a3..205b768 100644 --- a/.github/workflows/test-node.yml +++ b/.github/workflows/test-node.yml @@ -11,12 +11,21 @@ jobs: build: strategy: matrix: - node-version: [12] + node-version: [18, 20, 22, 24] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm install - run: npm run test + es5: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 24 + # The library supports Node >= 4, which CI no longer runs, so make sure it stays ES5. + - run: npx -y acorn@8.14.0 --ecma5 --silent index.js lib/retry.js lib/retry_operation.js