FrontEnd: Add fix for react-refresh conflict #77
Workflow file for this run
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: Build and test Frontend | |
on: | |
pull_request: | |
paths: | |
- 'FrontEnd/**' | |
- '.github/**' | |
push: | |
branches: | |
- main | |
paths: | |
- 'FrontEnd/**' | |
- '.github/**' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
node-version: [16.x] | |
steps: | |
- uses: actions/[email protected] | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: | | |
pwd | |
cd FrontEnd | |
npm install | |
- name: Run linter | |
run: | | |
cd FrontEnd | |
npm run lint | |
- name: Run type checker | |
run: | | |
cd FrontEnd | |
npm run tsc | |
- name: Run tests | |
run: | | |
cd FrontEnd | |
npm test -- --passWithNoTests | |
- name: Build FrontEnd | |
run: | | |
cd FrontEnd | |
npm run build | |
- name: Build storybook | |
run: | | |
cd FrontEnd | |
npm run build-storybook |