Merge pull request #19 from box4dev/modernizacao #5
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: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| # Cancela execuções anteriores se você enviar um novo commit na mesma branch | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| ci: | |
| name: Build, Test e Quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11.20.0 | |
| standalone: true | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: pnpm | |
| - name: Instalar dependências | |
| run: pnpm install --frozen-lockfile | |
| - name: Quality (Biome & Typecheck) | |
| run: | | |
| pnpm run biome:ci | |
| pnpm run typecheck | |
| - name: Testes | |
| run: pnpm run test | |
| - name: Build | |
| run: pnpm run build |