docs(cache): document cache coordination flow (#3186) #1
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, dev] | |
| pull_request: | |
| branches: [main, dev] | |
| merge_group: # Run CI on the merged commit before it lands on main | |
| jobs: | |
| quality: | |
| name: Format · Lint · Typecheck · Test | |
| runs-on: ubuntu-latest | |
| 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 | |
| - name: Check Prettier Formatting | |
| run: npm run format:check | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: TypeScript Type Check | |
| run: npm run typecheck | |
| - name: Run Unit Tests (Vitest) | |
| run: npm run test:coverage | |
| build: | |
| name: Production Build | |
| runs-on: ubuntu-latest | |
| 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 | |
| - name: Build | |
| run: npm run build | |
| env: | |
| CI: false |