Prepare v0.2.0 release #183
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: | |
| workflow_dispatch: | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Run unit tests with coverage | |
| run: npm run test:coverage | |
| - name: Build E2E static site | |
| run: npm run build:e2e | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: Run Playwright smoke tests | |
| env: | |
| PLAYWRIGHT_PREBUILT: 'true' | |
| PLAYWRIGHT_WORKERS: '2' | |
| run: npm run test:e2e:ci | |
| - name: Summarize Playwright timings | |
| if: always() | |
| run: npm run test:e2e:timing | |
| - name: Upload Playwright artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-artifacts | |
| path: | | |
| test-results | |
| playwright-report | |
| if-no-files-found: ignore | |
| retention-days: 7 |