Major codebase cleanup and refactoring #28
Workflow file for this run
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: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - run: npm ci | |
| - name: Format check | |
| run: npm run format:check | |
| - name: Lint | |
| run: npm run lint | |
| - name: Spell check | |
| uses: streetsidesoftware/cspell-action@v6 | |
| with: | |
| files: "src/**/*.ts" | |
| - name: Build | |
| run: npm run compile | |
| - name: Unit tests | |
| run: npm run test:unit | |
| - name: E2E tests with coverage | |
| run: xvfb-run -a npx vscode-test --coverage --grep @exclude-ci --invert | |
| - name: Coverage threshold (90%) | |
| run: npm run coverage:check | |
| website: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci | |
| working-directory: website | |
| - name: Build site | |
| run: npx @11ty/eleventy | |
| working-directory: website | |
| - name: Install Playwright | |
| run: npx playwright install --with-deps chromium | |
| working-directory: website | |
| - name: Run website tests | |
| run: npx playwright test | |
| working-directory: website |