feat(ui): refine typography and fix PDF export logic #3
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 previous runs if a new commit is pushed to save resources | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| # 1. QUALITY CHECK (Linting & Formatting) | |
| quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' # Caches node_modules for faster runs | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint and Format Check | |
| run: npm run check | |
| # 2. TESTING (Runs Vitest) | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| # Using 'coverage' script because it includes 'vitest run' | |
| # which ensures it runs once and exits (instead of watch mode) | |
| - name: Run Unit Tests | |
| run: npm run coverage | |
| # 3. BUILD VERIFICATION | |
| build: | |
| needs: test # Ensures we only try to build if tests pass | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build Project | |
| run: npm run build |