diff --git a/.github/workflows/highlightjs-lines.yml b/.github/workflows/highlightjs-lines.yml index 147119d..4a28bd1 100644 --- a/.github/workflows/highlightjs-lines.yml +++ b/.github/workflows/highlightjs-lines.yml @@ -8,12 +8,11 @@ on: jobs: build: - runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x, 20.x, 22.x] + node-version: [20.x, 22.x, 24.x] steps: - uses: actions/checkout@v4 @@ -23,4 +22,4 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm install - - run: node --test + - run: npm test diff --git a/package.json b/package.json index 1021c39..e2ab73d 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ "watch:postcss": "npm run postcss -- --watch", "build": "npm run sass:compressed && npm run postcss && npm run minify:js && eleventy && npm run prettify:html", "start": "npm-run-all sass:compressed postcss --parallel watch:*", - "dev": "npm run watch" + "dev": "npm run watch", + "test:highlightjs-lines": "node ./lib/highlightjs-lines.test.js", + "test": "node --test" }, "repository": { "type": "git",