Skip to content

Commit 62c1c05

Browse files
committed
Setup CI for type-checking all test apps
1 parent ed468fc commit 62c1c05

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci-build.yml

+39
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,45 @@ jobs:
3434
- run: pnpm test:ember
3535
working-directory: test-apps/base-tests
3636

37+
typecheck:
38+
name: '${{ matrix.typescript-scenario }}'
39+
runs-on: ubuntu-latest
40+
timeout-minutes: 5
41+
needs: [build]
42+
continue-on-error: true
43+
strategy:
44+
fail-fast: true
45+
matrix:
46+
typescript-scenario:
47+
- typescript@5.0
48+
- typescript@5.1
49+
- typescript@5.2
50+
- typescript@5.3
51+
- typescript@5.4
52+
53+
steps:
54+
- uses: actions/checkout@v4
55+
- uses: wyvox/action-setup-pnpm@v3
56+
with:
57+
node-version: 18.18.1
58+
- name: 'Build'
59+
run: pnpm build
60+
61+
- name: 'Change base tests TS to ${{ matrix.typescript-scenario }}'
62+
run: 'pnpm add --save-dev ${{ matrix.typescript-scenario}}'
63+
working-directory: ./test-apps/base-tests/
64+
65+
- name: 'Change ember-concurrency TS to ${{ matrix.typescript-scenario }}'
66+
run: 'pnpm add --save-dev ${{ matrix.typescript-scenario}}'
67+
working-directory: ./test-apps/ember-concurrency-v2
68+
69+
- name: 'Change ember-fetch TS to ${{ matrix.typescript-scenario }}'
70+
run: 'pnpm add --save-dev ${{ matrix.typescript-scenario}}'
71+
working-directory: ./test-apps/ember-fetch-v8
72+
73+
- run: pnpm --filter "./test-apps/*" exec tsc --noEmit;
74+
75+
3776
try-scenarios:
3877
timeout-minutes: 10
3978
name: "Try: ${{ matrix.ember-try-scenario }} @ ${{ matrix.app }}"

0 commit comments

Comments
 (0)