From e50fe19d7ca907709e2712839034094a2304ddec Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Sat, 1 Jun 2024 12:03:14 -0700 Subject: [PATCH] chore: remove unsupported node configs from CI No change to logic. GitHub Actions recently dropped some NodeJS configurations from their service. This excludes those configs from our CI. This also adds Node versions up through v22. Test: npm run check-node-support --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ scripts/check-node-support.js | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 085356f..769a323 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,10 +27,33 @@ jobs: - 18 - 19 - 20 + - 21 + - 22 os: - ubuntu-latest - macos-latest - windows-latest + exclude: + - node-version: 6 + os: macos-latest + - node-version: 7 + os: macos-latest + - node-version: 8 + os: macos-latest + - node-version: 9 + os: macos-latest + - node-version: 10 + os: macos-latest + - node-version: 11 + os: macos-latest + - node-version: 12 + os: macos-latest + - node-version: 13 + os: macos-latest + - node-version: 14 + os: macos-latest + - node-version: 15 + os: macos-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/scripts/check-node-support.js b/scripts/check-node-support.js index 296e889..6b0f6b6 100755 --- a/scripts/check-node-support.js +++ b/scripts/check-node-support.js @@ -9,7 +9,7 @@ var shell = require('shelljs'); // This is the authoritative list of supported node versions. var MIN_NODE_VERSION = 6; -var MAX_NODE_VERSION = 20; +var MAX_NODE_VERSION = 22; function checkReadme(minNodeVersion) { var start = '';