Merge pull request #22 from alejandrocuba/cli-branding #21
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] | |
| pull_request: | |
| branches: [main] | |
| # Cancel outdated workflow runs for the same branch or pull request | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| # Enforce secure least-privilege permissions | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| name: ${{ matrix.task.name }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| task: | |
| - name: 'Code Style Verification (Prettier)' | |
| command: 'format:check' | |
| - name: 'Static Code Analysis (ESLint)' | |
| command: 'lint' | |
| - name: 'Automated Unit & E2E Testing (Vitest)' | |
| command: 'test' | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11.0.9 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 26.1.0 | |
| cache: 'pnpm' | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Execute Validation | |
| run: pnpm run ${{ matrix.task.command }} |