fix frontend faliure workflow #54
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: React CI | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'frontend/**' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'frontend/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: 'frontend' | |
ref: main | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20.x' | |
- name: Install Dependencies | |
run: npm install --prefix frontend | |
- name: Run ESLint | |
run: cd .. && npm run format | |
- name: Build | |
run: npm run build |