feat: CI improvements and web UI implementation #170
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] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| actions: read | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| quality: [test, typecheck, lint, format:check, test:e2e] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.6 | |
| - name: Cache Bun dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bun- | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Install Playwright Browsers | |
| run: bunx playwright install --with-deps | |
| - name: Build | |
| run: bun build:prod | |
| - name: Run quality step | |
| run: bun ${{matrix.quality}} | |
| dependency-review: | |
| runs-on: ubuntu-24.04 | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Dependency Review | |
| uses: actions/dependency-review-action@v4 | |
| nix-flake-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| quality: [quality, test, test:e2e] | |
| name: Nix Flake CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v21 | |
| - name: Enable Magic Nix Cache | |
| uses: DeterminateSystems/magic-nix-cache-action@v13 | |
| - name: Install dependencies (Nix devShell) | |
| run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun install | |
| - name: Build (Nix devShell) | |
| run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun build | |
| - name: Quality checks (Nix devShell) | |
| run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun ${{matrix.quality}} |