Feature/multi UI workflow architecture #90
Workflow file for this run
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 Pipeline | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| # Job matrix para rodar m煤ltiplos checks em paralelo | |
| quality-checks: | |
| name: ${{ matrix.check-name }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false # Continua mesmo se um falhar | |
| matrix: | |
| include: | |
| - check-name: "Build" | |
| check-command: "build" | |
| - check-name: "Lint" | |
| check-command: "lint" | |
| - check-name: "Format Check" | |
| check-command: "format:check" | |
| - check-name: "Tests" | |
| check-command: "test" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| # Build 茅 necess谩rio antes de outros checks | |
| - name: Build project | |
| if: matrix.check-command != 'build' | |
| run: npm run build | |
| - name: Run ${{ matrix.check-name }} | |
| run: npm run ${{ matrix.check-command }} |