Skip to content

Commit 621f429

Browse files
authored
ci: split type tests by TypeScript version and raise types timeout (#11277)
1 parent 3b4f9aa commit 621f429

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎.github/workflows/check.yml‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@ jobs:
3939
exit 1
4040
fi
4141
42-
# Each type check takes several minutes on a slow runner, so they run in
43-
# parallel instead of sharing one job's timeout.
42+
# Separate timeout budgets leave headroom for runners that are 2-3x slower than usual.
4443
types-matrix:
4544
name: Types (${{ matrix.name }})
4645
runs-on: namespace-profile-linux-small
4746
permissions:
4847
contents: read
49-
timeout-minutes: 10
48+
timeout-minutes: 15
5049
strategy:
5150
fail-fast: false
5251
matrix:
@@ -60,9 +59,13 @@ jobs:
6059
- name: Deno
6160
deno: v2.9.6
6261
command: deno check .
63-
- name: Tests
62+
# Keep these versions in sync with the `test-types` target in package.json.
63+
- name: Tests TS 5.9
64+
deno: ""
65+
command: pnpm test-types --target 5.9
66+
- name: Tests TS 6.0
6467
deno: ""
65-
command: pnpm test-types --target '>=5.9'
68+
command: pnpm test-types --target 6.0
6669
- name: Alchemy
6770
deno: ""
6871
command: pnpm exec tsc -b packages/platform/cloudflare/tsconfig.alchemy.json --builders 1 --checkers 2

0 commit comments

Comments
 (0)