Skip to content

Commit

Permalink
chore: remove unsupported node configs from CI
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nfischer committed Jun 1, 2024
1 parent e466c2e commit d4ca480
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v2
- uses: actions/setup-node@v2
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-node-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<!-- start minVersion -->';
Expand Down

0 comments on commit d4ca480

Please sign in to comment.