Skip to content

Commit 8ff7bb5

Browse files
committed
Add TypeScript version matrix to CI
1 parent f6a0cb8 commit 8ff7bb5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
- 20.x # LTS
1818
- 22.x # LTS
1919
- 24.x # LTS
20+
typescript-version: &typescript-versions
21+
- "5.5"
22+
- "5.7"
23+
- "~5.9"
2024
steps:
2125
- uses: actions/checkout@v3
2226
- uses: pnpm/action-setup@v2
@@ -29,6 +33,8 @@ jobs:
2933
cache: "pnpm"
3034
- name: Install dependencies
3135
run: pnpm install
36+
- name: Install TypeScript ${{ matrix.typescript-version }}
37+
run: pnpm add -D typescript@${{ matrix.typescript-version }}
3238
- name: Build
3339
run: pnpm run build
3440
- name: Install dependencies
@@ -56,6 +62,7 @@ jobs:
5662
strategy:
5763
matrix:
5864
node-version: *node-versions
65+
typescript-version: *typescript-versions
5966
steps:
6067
- uses: actions/checkout@v3
6168
- uses: pnpm/action-setup@v2
@@ -68,6 +75,8 @@ jobs:
6875
cache: "pnpm"
6976
- name: Install dependencies
7077
run: pnpm install
78+
- name: Install TypeScript ${{ matrix.typescript-version }}
79+
run: pnpm add -D typescript@${{ matrix.typescript-version }}
7180
- name: Build # Integration tests depend upon having .js versions created by tsc
7281
run: pnpm run build
7382
- name: Unit Tests

0 commit comments

Comments
 (0)