Merge pull request #3751 from JdeRobot/checking-all-files-on-resume #1106
This file contains hidden or 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: Frontend Lint Workflow | |
| on: | |
| push: | |
| # paths: | |
| # - "react_frontend/**" | |
| jobs: | |
| setup-and-lint: | |
| name: Setup and Lint Frontend | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1) Checkout your code | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "yarn" | |
| cache-dependency-path: react_frontend/yarn.lock | |
| # 3) Install Yarn globally (optional; setup-node gives you npm) | |
| - name: Install Yarn | |
| run: npm install --global yarn | |
| # 4) Install dependencies | |
| - name: Install frontend deps | |
| working-directory: react_frontend | |
| run: yarn install --frozen-lockfile | |
| # 5) (Optional) Run your dev server | |
| - name: Run ESLint | |
| working-directory: react_frontend | |
| run: npm run lint |