chore(deps): bump the frontend-dependencies group across 1 directory with 22 updates #681
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: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "latest" | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies (including optional extras) | |
| run: uv sync --all-extras --group dev | |
| - name: Run linting | |
| run: make lint | |
| - name: Run tests with coverage | |
| run: make coverage | |
| - name: Run slow CLI scaffolding tests | |
| run: make test-slow | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: python | |
| frontend: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| cache-dependency-path: frontend/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Typecheck | |
| run: pnpm exec tsc -b --noEmit | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Build console | |
| run: pnpm build | |
| - name: Verify committed console bundle is up to date | |
| run: | | |
| if ! git diff --quiet -- ../src/chapkit/api/apps/console; then | |
| echo "::error::Committed console bundle (src/chapkit/api/apps/console) is stale - run 'pnpm build' in frontend/ and commit the result." | |
| git diff --stat -- ../src/chapkit/api/apps/console | |
| exit 1 | |
| fi | |
| e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "latest" | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install Python dependencies | |
| run: uv sync --all-extras --group dev | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| cache-dependency-path: frontend/pnpm-lock.yaml | |
| - name: Install frontend dependencies | |
| working-directory: frontend | |
| run: pnpm install --frozen-lockfile | |
| - name: Build console (with source maps for coverage) | |
| working-directory: frontend | |
| run: COVERAGE=1 pnpm build | |
| - name: Install Playwright browser | |
| working-directory: frontend | |
| run: pnpm exec playwright install --with-deps chromium | |
| - name: Run console e2e + collect coverage (boots the fixture chapkit service) | |
| working-directory: frontend | |
| run: COVERAGE=1 pnpm exec playwright test | |
| - name: Upload Playwright report | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report | |
| path: frontend/playwright-report/ | |
| retention-days: 7 | |
| - name: Upload console coverage report | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: console-coverage | |
| path: frontend/coverage/ | |
| retention-days: 7 | |
| - name: Upload console coverage to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: frontend/coverage/lcov.info | |
| flags: frontend |