Skip to content

Commit 066c03e

Browse files
authored
refactor: updated Node.js versions tests (#13)
[Node.js v18 has been EOL since March](https://nodejs.org/en/about/previous-releases), but newer Node.js versions aren't tested for so far.
1 parent f8e6ec0 commit 066c03e

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ on:
77
branches: [main]
88

99
jobs:
10-
test-node-18:
10+
test-node-20:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 18
16+
node-version: 20
1717
- run: yarn install --frozen-lockfile
1818
- run: yarn ci
1919
# TypeScript NodeNext Example
@@ -27,13 +27,33 @@ jobs:
2727
- run: yarn test
2828
working-directory: ./examples/typescript-legacy
2929

30-
test-node-20:
30+
test-node-22:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- uses: actions/checkout@v4
3434
- uses: actions/setup-node@v4
3535
with:
36-
node-version: 20
36+
node-version: 22
37+
- run: yarn install --frozen-lockfile
38+
- run: yarn ci
39+
# TypeScript NodeNext Example
40+
- run: yarn install --frozen-lockfile
41+
working-directory: ./examples/typescript-nodenext
42+
- run: yarn test
43+
working-directory: ./examples/typescript-nodenext
44+
# TypeScript Legacy Example
45+
- run: yarn install --frozen-lockfile
46+
working-directory: ./examples/typescript-legacy
47+
- run: yarn test
48+
working-directory: ./examples/typescript-legacy
49+
50+
test-node-24:
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- uses: actions/setup-node@v4
55+
with:
56+
node-version: 24
3757
- run: yarn install --frozen-lockfile
3858
- run: yarn ci
3959
# TypeScript NodeNext Example

0 commit comments

Comments
 (0)