Skip to content

Commit 38537c3

Browse files
committed
Don't run Node10 checks for TS 6+
1 parent 821be20 commit 38537c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,11 @@ jobs:
340340
run: yarn workspace @examples-type-portability/${{ matrix.example.name }} run test
341341

342342
- name: Test type portability with `moduleResolution Node10`
343+
if: matrix.ts != 'next' && !startsWith(matrix.ts, '6.')
343344
run: yarn workspace @examples-type-portability/${{ matrix.example.name }} run test --module CommonJS --moduleResolution Node10 --preserveSymLinks --verbatimModuleSyntax false
344345

345346
- name: Test type portability with `moduleResolution Node10` and `type module` in `package.json`
346-
if: matrix.example.name == 'nodenext-esm' || matrix.example.name == 'bundler'
347+
if: (matrix.example.name == 'nodenext-esm' || matrix.example.name == 'bundler') && matrix.ts != 'next' && !startsWith(matrix.ts, '6.')
347348
run: |
348349
npm --workspace=@examples-type-portability/${{ matrix.example.name }} pkg set type=module
349350
yarn workspace @examples-type-portability/${{ matrix.example.name }} run test --module ESNext --moduleResolution Node10 --preserveSymLinks --verbatimModuleSyntax false

0 commit comments

Comments
 (0)