Skip to content

Commit

Permalink
test: add TypeScript template to E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Feb 26, 2022
1 parent 68a55f0 commit 0dd388f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/tests-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions admin/scripts/test-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ while getopts ":ns" o; do
s)
EXTRA_OPTS="${EXTRA_OPTS} --skip-install"
;;
t)
EXTRA_OPTS="${EXTRA_OPTS} --typescript"
;;
*)
usage
;;
Expand Down

0 comments on commit 0dd388f

Please sign in to comment.