ci: Add Gitea Actions workflows and CI/CD documentation
Some checks failed
Deploy to Coolify / Code Quality (push) Has been cancelled
Deploy to Coolify / Run Tests (push) Has been cancelled
Deploy to Coolify / Deploy to Development (push) Has been cancelled
Deploy to Coolify / Deploy to Production (push) Has been cancelled
Deploy to Coolify / Deploy to Test (push) Has been cancelled

This commit is contained in:
Claw
2026-02-08 20:05:04 +00:00
parent 19874c0b2c
commit f3ec382124
4 changed files with 870 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
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