From 0dd388fb314d4b3d321ff57c206d0808a58843c8 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Sat, 26 Feb 2022 13:40:16 +0800 Subject: [PATCH] test: add TypeScript template to E2E test --- .github/workflows/tests-e2e.yml | 12 ++++++++++-- admin/scripts/test-release.sh | 3 +++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests-e2e.yml b/.github/workflows/tests-e2e.yml index f6c70b034c34..aa28a5782759 100644 --- a/.github/workflows/tests-e2e.yml +++ b/.github/workflows/tests-e2e.yml @@ -54,6 +54,11 @@ jobs: strategy: matrix: nodeLinker: [pnp, node-modules] + variant: + - name: JS + option: -s + - name: TS + option: -s -t steps: - uses: actions/checkout@v2 - name: Use Node.js 16 @@ -63,8 +68,8 @@ jobs: cache: yarn - name: Installation run: yarn - - name: Generate test-website project against main branch - run: yarn test:build:website -s + - name: Generate test-website project in ${{ matrix.variant.name }} against main branch + run: yarn test:build:website ${{ matrix.variant.option }} env: KEEP_CONTAINER: true - name: Install test-website project with Yarn Berry and nodeLinker = ${{ matrix.nodeLinker }} @@ -92,6 +97,9 @@ jobs: working-directory: ../test-website env: E2E_TEST: true + - name: Type check + if: matrix.variant.name == 'TS' + run: yarn typecheck - name: Build test-website project run: yarn build working-directory: ../test-website diff --git a/admin/scripts/test-release.sh b/admin/scripts/test-release.sh index 2ecda2a3e51b..17abb68b22f4 100755 --- a/admin/scripts/test-release.sh +++ b/admin/scripts/test-release.sh @@ -19,6 +19,9 @@ while getopts ":ns" o; do s) EXTRA_OPTS="${EXTRA_OPTS} --skip-install" ;; + t) + EXTRA_OPTS="${EXTRA_OPTS} --typescript" + ;; *) usage ;;