Merge pull request #86 from TheByteFlow/frontend #52
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: Lint Check | |
on: | |
push: | |
branches: | |
- main | |
- frontend | |
- backend | |
- dev | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'npm' | |
- name: Install dependencies (for all workspaces) | |
run: npm ci | |
- name: Run ESLint (Frontend) | |
run: npm run lint --workspace=frontend -- --max-warnings=10 | |
- name: Run ESLint (Backend) | |
run: npm run lint --workspace=backend -- --max-warnings=10 |