Skip to content

Commit 02bb15d

Browse files
authored
Merge pull request #1741 from Fdawgs/patch-1
ci(nodejs): add node 24 to test matrix
2 parents e62de1b + 9ce72a2 commit 02bb15d

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

.github/workflows/nodejs.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
commitlint:
1414
name: Lint commits
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -34,7 +34,7 @@ jobs:
3434
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
3535
codelint:
3636
name: Lint code
37-
runs-on: ubuntu-22.04
37+
runs-on: ubuntu-24.04
3838
steps:
3939
- name: Checkout code
4040
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -67,16 +67,9 @@ jobs:
6767
MSSQL_PASSWORD: 'yourStrong(!)Password'
6868
strategy:
6969
matrix:
70-
os: [ubuntu-20.04, ubuntu-24.04]
71-
node: [18.x, 20.x, 22.x]
72-
sqlserver: [2017, 2019, 2022]
73-
exclude:
74-
- os: ubuntu-24.04
75-
sqlserver: 2017
76-
- os: ubuntu-20.04
77-
sqlserver: 2019
78-
- os: ubuntu-20.04
79-
sqlserver: 2022
70+
os: [ubuntu-24.04]
71+
node: [18.x, 20.x, 22.x, 24.x]
72+
sqlserver: [2019, 2022]
8073
steps:
8174
- name: Checkout code
8275
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -122,7 +115,7 @@ jobs:
122115
strategy:
123116
matrix:
124117
os: [windows-2019, windows-2022]
125-
node: [18.x, 20.x, 22.x]
118+
node: [18.x, 20.x, 22.x, 24.x]
126119
sqlserver: [2008, 2012, 2014, 2016, 2017, 2019, 2022]
127120
# These sqlserver versions don't work on windows-2022 (at the moment)
128121
exclude:
@@ -160,16 +153,22 @@ jobs:
160153
- name: Run cli tests
161154
run: npm run test-cli
162155
- name: Install msnodesqlv8
163-
if: ${{ matrix.node != '22.x' }}
156+
if: ${{ matrix.node != '22.x' && matrix.node != '24.x' }}
164157
run: npm install --no-save msnodesqlv8@^2
165158
- name: Run msnodesqlv8 tests
166-
if: ${{ matrix.node != '22.x' }}
159+
if: ${{ matrix.node != '22.x' && matrix.node != '24.x' }}
160+
run: npm run test-msnodesqlv8
161+
- name: Install msnodesqlv8
162+
if: ${{ matrix.node == '22.x' || matrix.node == '24.x' }}
163+
run: npm install --no-save msnodesqlv8@^4
164+
- name: Run msnodesqlv8 tests
165+
if: ${{ matrix.node == '22.x' && matrix.node == '24.x' }}
167166
run: npm run test-msnodesqlv8
168167
release:
169168
name: Release
170169
concurrency: release
171170
if: ${{ github.repository_owner == 'tediousjs' && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
172-
runs-on: ubuntu-22.04
171+
runs-on: ubuntu-24.04
173172
needs:
174173
- commitlint
175174
- codelint

0 commit comments

Comments
 (0)