[#121] Update the package name when initialize vite template #153
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
name: Test CRA Template | |
on: push | |
jobs: | |
test: | |
name: Bootstrap CRA app, run linters and tests with Node ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [14, 16] | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node and restore cached dependencies | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'npm' | |
- name: Bootstrap React App | |
run: npx create-react-app test-app --template file:./packages/cra-template | |
- name: Run linters | |
working-directory: ./test-app | |
run: npm run codebase:lint | |
- name: Run unit tests | |
working-directory: ./test-app | |
run: npm run test | |
- name: Run integration tests | |
working-directory: ./test-app | |
run: npm run cypress |