Skip to content

Commit 91c872b

Browse files
committed
feat!: drop support for Node.js v12, which is EOL, and v14, which is EOL in a couple days
In term include Node.js v18 and v19 in testing.
1 parent 14d21f8 commit 91c872b

File tree

3 files changed

+16
-50
lines changed

3 files changed

+16
-50
lines changed

.github/workflows/build.yml

+14-48
Original file line numberDiff line numberDiff line change
@@ -3,70 +3,36 @@ on:
33
push:
44
branches:
55
- main
6+
- beta
67
- 'renovate/**'
7-
- 'github-renovate/**'
88
pull_request:
99
jobs:
1010
lint:
1111
uses: vidavidorra/.github/.github/workflows/node-lint.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
1212
build:
13-
name: Build (Node.js v${{ matrix.node }})
14-
runs-on: ubuntu-latest
15-
timeout-minutes: 5
13+
name: Build (Node.js ${{ matrix.nodeVersion }})
1614
strategy:
1715
fail-fast: false
1816
matrix:
19-
node: [12, 14, 16]
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
23-
- name: Setup node
24-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
25-
with:
26-
node-version: ${{ matrix.node }}
27-
- name: Install project
28-
run: npm ci --ignore-scripts
29-
- name: Build
30-
run: npm run build
17+
nodeVersion: [16, 18, 19]
18+
uses: vidavidorra/.github/.github/workflows/node-build.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
19+
with:
20+
nodeVersion: ${{ matrix.nodeVersion }}
3121
test:
3222
name: Test (Node.js v${{ matrix.node }})
33-
runs-on: ubuntu-latest
34-
timeout-minutes: 5
3523
strategy:
3624
fail-fast: false
3725
matrix:
38-
node: [12, 14, 16]
39-
steps:
40-
- name: Checkout
41-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
42-
- name: Setup node
43-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
44-
with:
45-
node-version: ${{ matrix.node }}
46-
- name: Install project
47-
run: npm ci --ignore-scripts
48-
- name: Test
49-
run: npm test
26+
node: [16, 18, 19]
27+
uses: vidavidorra/.github/.github/workflows/node-test.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
28+
with:
29+
nodeVersion: ${{ matrix.node }}
5030
code-coverage:
31+
name: Test coverage
5132
needs: [lint, build, test]
52-
runs-on: ubuntu-latest
53-
timeout-minutes: 5
54-
steps:
55-
- name: Checkout
56-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
57-
- name: Setup node
58-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
59-
with:
60-
node-version: 14
61-
- name: Install project
62-
run: npm ci --ignore-scripts
63-
- name: Test
64-
run: npm test
65-
- name: Upload coverage to Codecov
66-
uses: codecov/codecov-action@40a12dcee2df644d47232dde008099a3e9e4f865 # v3.1.2
67-
with:
68-
token: ${{ secrets.CODECOV_TOKEN }}
69-
file: ./coverage/cobertura-coverage.xml
33+
uses: vidavidorra/.github/.github/workflows/[email protected]
34+
secrets:
35+
codecovToken: ${{ secrets.CODECOV_TOKEN }}
7036
release:
7137
needs: [lint, build, test, code-coverage]
7238
runs-on: ubuntu-latest

.github/workflows/lint-commit-messages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ on:
33
push:
44
branches:
55
- main
6+
- beta
67
- 'renovate/**'
7-
- 'github-renovate/**'
88
pull_request:
99
jobs:
1010
lint-commit-messages:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
"homepage": "https://github.com/vidavidorra/commitlint-plugin-function-rules#readme",
4343
"engines": {
44-
"node": ">=12"
44+
"node": ">=16"
4545
},
4646
"peerDependencies": {
4747
"@commitlint/lint": ">=9.1.2 <18"

0 commit comments

Comments
 (0)