Fix react app CI workflow #1
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: Client CI | ||
on: | ||
push: | ||
paths: | ||
- 'react/**' | ||
- '.github/workflows/react.yml' | ||
jobs: | ||
Test: | ||
runs-on: ubuntu-latest | ||
needs: Lint | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: | | ||
cd react | ||
yarn install | ||
- name: Run tests | ||
run: | | ||
cd react | ||
yarn test:ci | ||
Build: | ||
runs-on: ubuntu-latest | ||
needs: Test | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: | | ||
cd react | ||
yarn install | ||
- name: Build react artifacts | ||
run: | | ||
cd react | ||
yarn build |