- Remove Convex from docker-compose (runs separately) - Add .forgejo/workflows/ci.yml with auto-deploy to Coolify - Update DEVELOPMENT.md with dev/prod architecture diagram - Rename branch from develop to dev in all workflows
49 lines
964 B
YAML
49 lines
964 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, dev]
|
|
pull_request:
|
|
branches: [main, dev]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Lint
|
|
run: pnpm lint
|
|
|
|
- name: Build
|
|
run: pnpm build
|
|
|
|
deploy-dev:
|
|
if: github.ref == 'refs/heads/dev'
|
|
needs: lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy to Coolify (Dev)
|
|
run: |
|
|
curl -X POST "${{ secrets.COOLIFY_DEV_WEBHOOK }}"
|
|
|
|
deploy-prod:
|
|
if: github.ref == 'refs/heads/main'
|
|
needs: lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy to Coolify (Prod)
|
|
run: |
|
|
curl -X POST "${{ secrets.COOLIFY_PROD_WEBHOOK }}"
|