Merge pull request #8 from Benevanio/develop #9
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [master, develop] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| cache-dependency-path: package-lock.json | |
| - name: Instalar dependencias (raiz) | |
| run: npm ci | |
| - name: Testes backend | |
| run: npm test | |
| - name: Instalar dependencias (frontend) | |
| run: npm ci --prefix frontend | |
| - name: Lint frontend | |
| run: npm run lint --prefix frontend | |
| - name: Build frontend | |
| run: npm run build --prefix frontend |