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