diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 24599fda9..e5b95a6ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,9 +37,6 @@ jobs: fail-fast: false matrix: node-version: - - lts/erbium # 12 - - lts/fermium # 14 - - lts/gallium # 16 - lts/hydrogen # 18 - current @@ -53,8 +50,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' check-latest: true - - run: npm install --global npm@8 - if: ${{ startsWith(steps.node.outputs.node-version, 'v12') || startsWith(steps.node.outputs.node-version, 'v14') }} - run: npm clean-install - run: npm run ci diff --git a/lib/provider.js b/lib/provider.js index 7aad9f50c..8d423246c 100644 --- a/lib/provider.js +++ b/lib/provider.js @@ -1,7 +1,7 @@ // eslint-disable-next-line import/order const attention = require('./helpers/attention'); -const minimal = 'Erbium'; +const minimal = 'Hydrogen'; const current = process.release.lts; if (!current || current.charCodeAt(0) < minimal.charCodeAt(0)) { attention.warn('Unsupported Node.js runtime version.'); diff --git a/package.json b/package.json index ea4e4672a..8bf539ffd 100644 --- a/package.json +++ b/package.json @@ -103,6 +103,6 @@ "timekeeper": "^2.2.0" }, "engines": { - "node": "12 || 14 || 16 || 18" + "node": "18" } } diff --git a/test/ci.js b/test/ci.js index c8e1f4877..07bff162f 100644 --- a/test/ci.js +++ b/test/ci.js @@ -33,17 +33,7 @@ function pass({ mountTo, mountVia } = {}) { if (process.platform === 'linux' || !('CI' in process.env)) { const mountTo = '/oidc'; - const frameworks = ['connect', 'express', 'koa']; - - const [major] = process.version.slice(1).split('.').map((x) => parseInt(x, 10)); - - if (major >= 12) { - frameworks.push('hapi'); - } - - if (major >= 14) { - frameworks.push('fastify'); - } + const frameworks = ['connect', 'express', 'koa', 'hapi', 'fastify']; for (const mountVia of frameworks) { await pass({ mountVia, mountTo });