-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): TypeCheck website/starter in min/max range of TS versions (#…
- Loading branch information
Showing
11 changed files
with
57 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,11 +114,27 @@ jobs: | |
working-directory: ../test-website | ||
env: | ||
E2E_TEST: true | ||
- name: Type check | ||
|
||
- name: TypeCheck website | ||
# TODO: there're some lingering issues with PnP + tsc. Enable tsc in PnP later. | ||
if: matrix.variant == '-st' && matrix.nodeLinker != 'pnp' | ||
working-directory: ../test-website | ||
run: yarn typecheck | ||
- name: TypeCheck website - min version - v5.1 | ||
# TODO: there're some lingering issues with PnP + tsc. Enable tsc in PnP later. | ||
if: matrix.variant == '-st' && matrix.nodeLinker != 'pnp' | ||
working-directory: ../test-website | ||
run: | | ||
yarn add [email protected] --exact | ||
yarn typecheck | ||
- name: TypeCheck website - max version - Latest | ||
# TODO: there're some lingering issues with PnP + tsc. Enable tsc in PnP later. | ||
if: matrix.variant == '-st' && matrix.nodeLinker != 'pnp' | ||
working-directory: ../test-website | ||
run: | | ||
yarn add typescript@latest --exact | ||
yarn typecheck | ||
- name: Build test-website project | ||
run: yarn build | ||
working-directory: ../test-website | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,5 +52,14 @@ jobs: | |
run: yarn workspace website test:swizzle:wrap:ts | ||
- name: Docusaurus Build | ||
run: yarn build:website:fast | ||
|
||
- name: TypeCheck website | ||
run: yarn workspace website typecheck | ||
- name: TypeCheck website - min version - v5.1 | ||
run: | | ||
yarn workspace website add [email protected] --exact | ||
yarn workspace website typecheck | ||
- name: TypeCheck website - max version - Latest | ||
run: | | ||
yarn workspace website add typescript@latest --exact | ||
yarn workspace website typecheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,9 +39,18 @@ jobs: | |
run: yarn | ||
- name: Test | ||
run: yarn test | ||
- name: TypeCheck website | ||
run: yarn workspace website typecheck | ||
- name: Remove Theme Internal Re-export | ||
run: yarn workspace @docusaurus/theme-common removeThemeInternalReexport | ||
- name: Docusaurus Build | ||
run: yarn build:website:fast | ||
|
||
- name: TypeCheck website | ||
run: yarn workspace website typecheck | ||
- name: TypeCheck website - min version - v5.1 | ||
run: | | ||
yarn workspace website add [email protected] --exact | ||
yarn workspace website typecheck | ||
- name: TypeCheck website - max version - Latest | ||
run: | | ||
yarn workspace website add typescript@latest --exact | ||
yarn workspace website typecheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters