🤖 Sintesi: Automated Documentation Update (#34) #124
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 | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| quality-checks: | |
| runs-on: ubuntu-latest | |
| name: Code Quality Checks | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Run ESLint | |
| run: bun run lint | |
| - name: Check formatting | |
| run: bun run format:check | |
| - name: Type checking | |
| run: bun run type-check | |
| - name: Build project | |
| run: bun run build | |
| env: | |
| VITE_PUBLIC_POSTHOG_KEY: ${{ secrets.VITE_PUBLIC_POSTHOG_KEY }} | |
| VITE_PUBLIC_POSTHOG_HOST: ${{ secrets.VITE_PUBLIC_POSTHOG_HOST }} | |
| summary: | |
| runs-on: ubuntu-latest | |
| needs: quality-checks | |
| if: always() | |
| steps: | |
| - name: Check result | |
| run: | | |
| if [ "${{ needs.quality-checks.result }}" == "success" ]; then | |
| echo "✅ All checks passed!" | |
| else | |
| echo "❌ Some checks failed" | |
| exit 1 | |
| fi |