fix(frontend): timeout en el proxy — 504/502 claros en vez de colgar hasta maxDuration #60
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 CI | |
| on: | |
| pull_request: | |
| paths: | |
| - "frontend/**" | |
| - ".github/workflows/frontend-ci.yml" | |
| push: | |
| branches: | |
| - main | |
| - master | |
| paths: | |
| - "frontend/**" | |
| - ".github/workflows/frontend-ci.yml" | |
| concurrency: | |
| group: frontend-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| quality: | |
| name: Lint, Test, Build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| env: | |
| CI: true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: frontend/.nvmrc | |
| cache: npm | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci --no-audit --no-fund | |
| - name: Lint | |
| timeout-minutes: 6 | |
| run: npm run lint:ci | |
| - name: Test | |
| timeout-minutes: 6 | |
| run: npm run test:ci | |
| - name: Build | |
| timeout-minutes: 10 | |
| run: npm run build |