Initial commit: Complete project-bootstrap tool
- Bootstrap script for creating monorepo projects - FastAPI backend templates with uv, ruff, mypy, pytest - React frontend templates with TypeScript, ESLint, Prettier - Docker Compose setup with backend, frontend, and database - 9 development and CI scripts - Gitea Actions CI/CD workflows - Comprehensive documentation (8 files) - 45 template files for complete project structure - Automated verification script (all tests pass) - Based on coding-agent-rules standards
This commit is contained in:
39
templates/.gitea/workflows/backend-ci.yml
Normal file
39
templates/.gitea/workflows/backend-ci.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Backend CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master, develop]
|
||||
paths:
|
||||
- 'backend/**'
|
||||
- 'scripts/ci/backend-test.sh'
|
||||
- '.gitea/workflows/backend-ci.yml'
|
||||
pull_request:
|
||||
branches: [main, master, develop]
|
||||
paths:
|
||||
- 'backend/**'
|
||||
- 'scripts/ci/backend-test.sh'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
|
||||
- name: Run backend tests
|
||||
run: bash scripts/ci/backend-test.sh
|
||||
|
||||
- name: Upload coverage reports
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
files: ./backend/coverage.xml
|
||||
flags: backend
|
||||
38
templates/.gitea/workflows/frontend-ci.yml
Normal file
38
templates/.gitea/workflows/frontend-ci.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Frontend CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master, develop]
|
||||
paths:
|
||||
- 'frontend/**'
|
||||
- 'scripts/ci/frontend-test.sh'
|
||||
- '.gitea/workflows/frontend-ci.yml'
|
||||
pull_request:
|
||||
branches: [main, master, develop]
|
||||
paths:
|
||||
- 'frontend/**'
|
||||
- 'scripts/ci/frontend-test.sh'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
|
||||
- name: Run frontend tests
|
||||
run: bash scripts/ci/frontend-test.sh
|
||||
|
||||
- name: Upload coverage reports
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
files: ./frontend/coverage/coverage-final.json
|
||||
flags: frontend
|
||||
Reference in New Issue
Block a user