Skip to content

Commit 3bb21d9

Browse files
committed
chore: drop non-LTS node versions
No change to logic. This drops support for non-LTS versions. Non-LTS versions will now require community support (I will stll accept patches).
1 parent b70e666 commit 3bb21d9

File tree

3 files changed

+6
-28
lines changed

3 files changed

+6
-28
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: CI
22
on:
33
- push
44
- pull_request
5-
env:
6-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
75
jobs:
86
test:
97
name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
@@ -13,35 +11,12 @@ jobs:
1311
matrix:
1412
node-version:
1513
- 18
16-
- 19
1714
- 20
18-
- 21
1915
- 22
2016
os:
2117
- ubuntu-latest
2218
- macos-latest
2319
- windows-latest
24-
exclude:
25-
- node-version: 6
26-
os: macos-latest
27-
- node-version: 7
28-
os: macos-latest
29-
- node-version: 8
30-
os: macos-latest
31-
- node-version: 9
32-
os: macos-latest
33-
- node-version: 10
34-
os: macos-latest
35-
- node-version: 11
36-
os: macos-latest
37-
- node-version: 12
38-
os: macos-latest
39-
- node-version: 13
40-
os: macos-latest
41-
- node-version: 14
42-
os: macos-latest
43-
- node-version: 15
44-
os: macos-latest
4520
steps:
4621
- uses: actions/checkout@v4
4722
- uses: actions/setup-node@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
commands, providing an easy solution for simple Unix-like, cross-platform
1010
commands in npm package scripts.
1111

12-
`shx` is proudly tested on every node release since <!-- start minVersion -->`v18`<!-- stop minVersion -->!
12+
`shx` is proudly tested on every LTS node release since <!-- start minVersion -->`v18`<!-- stop minVersion -->!
1313

1414
## Difference Between ShellJS and shx
1515

scripts/check-node-support.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ function assertDeepEquals(arr1, arr2, msg) {
4444

4545
function range(start, stop) {
4646
var ret = [];
47-
for (var i = start; i <= stop; i++) {
47+
for (var i = start; i <= stop; i += 2) {
48+
if (i % 2 !== 0) {
49+
console.warn('Warning: testing a non-LTS nodejs release: ' + i);
50+
}
4851
ret.push(i);
4952
}
5053
return ret;
@@ -68,7 +71,7 @@ try {
6871
var githubActionsYaml = yaml.load(shell.cat(githubActionsFileName));
6972
checkGithubActions(MIN_NODE_VERSION, MAX_NODE_VERSION, githubActionsYaml);
7073

71-
console.log('All files look good (this project supports v'
74+
console.log('All files look good (this project supports LTS releases v'
7275
+ MIN_NODE_VERSION + '-v' + MAX_NODE_VERSION + ')!');
7376
} catch (e) {
7477
console.error('Please check the files which declare our Node version');

0 commit comments

Comments
 (0)