Skip to content

Commit 3b6adc9

Browse files
ci: add node v24 (#199)
1 parent 2a92a6a commit 3b6adc9

File tree

3 files changed

+4231
-7541
lines changed

3 files changed

+4231
-7541
lines changed

.github/workflows/nodejs.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,71 +13,52 @@ on:
1313
jobs:
1414
lint:
1515
name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }}
16-
1716
env:
1817
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
2018
strategy:
2119
matrix:
2220
os: [ubuntu-latest]
2321
node-version: [lts/*]
24-
2522
runs-on: ${{ matrix.os }}
26-
2723
concurrency:
2824
group: lint-${{ matrix.os }}-v${{ matrix.node-version }}-${{ github.ref }}
2925
cancel-in-progress: true
30-
3126
steps:
3227
- uses: actions/checkout@v4
3328
with:
3429
fetch-depth: 0
35-
3630
- name: Use Node.js ${{ matrix.node-version }}
3731
uses: actions/setup-node@v4
3832
with:
3933
node-version: ${{ matrix.node-version }}
4034
cache: "npm"
41-
4235
- name: Install dependencies
4336
run: npm ci
44-
4537
- name: Lint
4638
run: npm run lint
47-
4839
- name: Build declarations
4940
run: npm run build:types
50-
5141
- name: Run lint declarations
5242
run: if [ -n "$(git status declarations --porcelain)" ]; then echo "Missing declarations in git"; exit 1; else echo "All declarations are valid"; fi
53-
5443
- name: Security audit
5544
run: npm run security
56-
5745
- name: Check commit message
5846
uses: wagoid/commitlint-github-action@v4
59-
6047
test:
6148
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}
62-
6349
strategy:
6450
matrix:
6551
os: [ubuntu-latest, windows-latest, macos-latest]
66-
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 23.x]
67-
52+
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
6853
runs-on: ${{ matrix.os }}
69-
7054
concurrency:
7155
group: test-${{ matrix.os }}-v${{ matrix.node-version }}-${{ github.ref }}
7256
cancel-in-progress: true
73-
7457
steps:
7558
- name: Setup Git
7659
if: matrix.os == 'windows-latest'
7760
run: git config --global core.autocrlf input
78-
7961
- uses: actions/checkout@v4
80-
8162
- uses: actions/github-script@v7
8263
id: calculate_architecture
8364
with:
@@ -88,27 +69,22 @@ jobs:
8869
} else {
8970
return ''
9071
}
91-
9272
- name: Use Node.js ${{ matrix.node-version }}
9373
uses: actions/setup-node@v4
9474
with:
9575
node-version: ${{ matrix.node-version }}
9676
architecture: ${{ steps.calculate_architecture.outputs.result }}
9777
cache: "npm"
98-
9978
- name: Install dependencies
10079
run: |
101-
npm i del-cli@^3
80+
npm i -D typescript@4 del-cli@^3
10281
npm i --ignore-engines
103-
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x' || matrix.node-version == '16.x'
104-
82+
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x' || matrix.node-version == '16.x' || matrix.node-version == '18.x'
10583
- name: Install dependencies
10684
run: npm ci
107-
if: matrix.node-version == '18.x' || matrix.node-version == '20.x' || matrix.node-version == '22.x' || matrix.node-version == '23.x'
108-
85+
if: matrix.node-version == '20.x' || matrix.node-version == '22.x' || matrix.node-version == '24.x'
10986
- name: Run tests with coverage
11087
run: npm run test:coverage -- --ci
111-
11288
- name: Submit coverage data to codecov
11389
uses: codecov/codecov-action@v5
11490
with:

0 commit comments

Comments
 (0)