feat: initialize monorepo with full dev team best practices
- Unified monorepo with backend (Express), frontend (Next.js), and devops - Backend: ESLint, Prettier, Jest tests (3 passing), health endpoint, .env.example - Frontend: Fixed build errors, fixed all lint errors (0 remaining), tests passing - DevOps: Docker Compose with PostgreSQL, backend, frontend + healthchecks - CI/CD: 3 GitHub Actions workflows (backend, frontend, docker integration) - DX: Husky pre-commit hooks with smart change detection - Docs: Root README with architecture, CONTRIBUTING.md, PR template Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: Docker Integration
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
docker-build:
|
||||
name: Docker Compose Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build all services
|
||||
run: docker compose -f website-monitoring-devops/docker-compose.yml build
|
||||
|
||||
- name: Start services
|
||||
run: |
|
||||
docker compose -f website-monitoring-devops/docker-compose.yml up -d db backend
|
||||
sleep 15
|
||||
|
||||
- name: Verify backend health
|
||||
run: |
|
||||
docker compose -f website-monitoring-devops/docker-compose.yml exec -T backend curl -f http://localhost:5000/health || exit 1
|
||||
|
||||
- name: Cleanup
|
||||
if: always()
|
||||
run: docker compose -f website-monitoring-devops/docker-compose.yml down -v
|
||||
Reference in New Issue
Block a user