Skip to content

Commit 005d546

Browse files
ci: test with older TypeScript version
1 parent a13f35f commit 005d546

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
node-version:
20+
- 14
2021
- 20
2122

2223
steps:
@@ -31,5 +32,11 @@ jobs:
3132
- name: Install dependencies
3233
run: npm ci
3334

35+
# the "override" keyword was added in typescript@4.5.0
36+
# else, users can go down to typescript@3.8.x ("import type")
37+
- name: Install TypeScript 4.5
38+
run: npm i typescript@4.5
39+
if: ${{ matrix.node-version == '14' }}
40+
3441
- name: Run tests
3542
run: npm test

0 commit comments

Comments
 (0)