name: Pull Request Checks on: pull_request: branches: - main - develop jobs: pr-validation: name: Validate PR runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 # Full history for better diff analysis - name: Setup Bun uses: oven-sh/setup-bun@v1 with: bun-version: latest - name: Install dependencies run: | if [ -d "app" ]; then cd app bun install --frozen-lockfile fi - name: Type check run: | if [ -d "app" ]; then cd app bun run typecheck || echo "⚠️ Typecheck not configured" fi - name: Lint run: | if [ -d "app" ]; then cd app bun run lint || echo "⚠️ Linting not configured" fi - name: Run tests run: | if [ -d "app" ]; then cd app bun test || echo "⚠️ Tests not configured" fi - name: Check migrations run: | if [ -d "supabase/migrations" ]; then echo "📋 Migration files found:" ls -la supabase/migrations/ fi - name: PR Summary run: | echo "## ✅ Pull Request Validation Complete" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "**Branch:** ${{ github.head_ref }}" >> $GITHUB_STEP_SUMMARY echo "**Target:** ${{ github.base_ref }}" >> $GITHUB_STEP_SUMMARY echo "**Author:** ${{ github.actor }}" >> $GITHUB_STEP_SUMMARY