Add custom component overrides #74
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] | |
| paths: | |
| - 'packages/**' | |
| - 'package.json' | |
| - 'bun.lock' | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'packages/**' | |
| - 'package.json' | |
| - 'bun.lock' | |
| jobs: | |
| test: | |
| name: Test & Type Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Run tests | |
| run: bun run test | |
| - name: Type check (strict - warnings are errors) | |
| run: | | |
| set -o pipefail | |
| # Capture TypeScript output - any output indicates errors/warnings | |
| output=$(bun run type-check 2>&1) || exit 1 | |
| if [ -n "$output" ] && echo "$output" | grep -qE "error TS|warning"; then | |
| echo "$output" | |
| exit 1 | |
| fi | |
| - name: Build (strict - warnings are errors) | |
| run: | | |
| set -o pipefail | |
| # Build and fail on any TypeScript errors/warnings | |
| bun run build 2>&1 | tee build_output.txt | |
| if grep -qE "error TS|warning" build_output.txt; then | |
| echo "Build produced errors or warnings" | |
| exit 1 | |
| fi |