Skip to content

Commit f8aaa65

Browse files
committed
feat!: drop support for older Node
1 parent ad37d78 commit f8aaa65

File tree

2 files changed

+48
-9
lines changed

2 files changed

+48
-9
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,57 @@
1+
on:
2+
push:
3+
branches:
4+
- current
5+
- next
6+
- 'v*'
7+
pull_request:
8+
19
name: CI
2-
on: [push, pull_request]
310

411
jobs:
5-
build:
12+
lint:
13+
name: Lint
614
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: v20.x
21+
- name: Install dependencies
22+
run: npm install
23+
- name: Check linting
24+
run: npm run lint:ci
25+
26+
tests:
27+
needs: [lint]
28+
name: Tests
729
strategy:
30+
fail-fast: false
831
matrix:
9-
node: [16.x, 18.x, 20.x]
10-
name: Node ${{ matrix.node }}
32+
os: [ubuntu-latest, macos-latest, windows-latest]
33+
node-version: [18.x, 20.x, 21.x]
34+
runs-on: ${{matrix.os}}
1135
steps:
1236
- uses: actions/checkout@v4
13-
- name: Setup node
37+
with:
38+
persist-credentials: false
39+
40+
- name: Use Node.js ${{ matrix.node-version }}
1441
uses: actions/setup-node@v4
1542
with:
16-
node-version: ${{ matrix.node }}
17-
- run: npm install
18-
- run: npm run test:ci
43+
node-version: ${{ matrix.node-version }}
44+
45+
- uses: actions/cache@v3
46+
id: check-cache
47+
with:
48+
path: ~/.npm
49+
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
50+
restore-keys: |
51+
${{ runner.os }}-node-${{ matrix.node-version }}-
52+
53+
- name: Install Dependencies
54+
run: npm install
55+
- name: Run Tests
56+
run: npm run test:ci
57+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"release": "npx standard-version"
1616
},
1717
"engines": {
18-
"node": ">=16.x"
18+
"node": ">=18.x"
1919
},
2020
"keywords": [
2121
"fastify",

0 commit comments

Comments
 (0)