Skip to content

[#121] Remove deprecated lerna bootstrap command #150

[#121] Remove deprecated lerna bootstrap command

[#121] Remove deprecated lerna bootstrap command #150

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