Skip to content

Commit 9e32e91

Browse files
authored
update: test — migrate test to run on recommended NodeJS versions and npm test (#311)
update: `test` — migrate test to run on recommended NodeJS versions and `npm test`
2 parents faee215 + cebddc6 commit 9e32e91

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/highlightjs-lines.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ on:
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312

1413
strategy:
1514
matrix:
16-
node-version: [18.x, 20.x, 22.x]
15+
node-version: [20.x, 22.x, 24.x]
1716

1817
steps:
1918
- uses: actions/checkout@v4
@@ -23,4 +22,4 @@ jobs:
2322
node-version: ${{ matrix.node-version }}
2423
cache: 'npm'
2524
- run: npm install
26-
- run: node --test
25+
- run: npm test

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"watch:postcss": "npm run postcss -- --watch",
1717
"build": "npm run sass:compressed && npm run postcss && npm run minify:js && eleventy && npm run prettify:html",
1818
"start": "npm-run-all sass:compressed postcss --parallel watch:*",
19-
"dev": "npm run watch"
19+
"dev": "npm run watch",
20+
"test:highlightjs-lines": "node ./lib/highlightjs-lines.test.js",
21+
"test": "node --test"
2022
},
2123
"repository": {
2224
"type": "git",

0 commit comments

Comments
 (0)