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
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:
65
.gitea/workflows/pr-checks.yml
Normal file
65
.gitea/workflows/pr-checks.yml
Normal 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
|
||||
Reference in New Issue
Block a user