Skip to content

feat(pipeline): add devops main CI workflow - #8

Merged
nourabosaif merged 6 commits into
mainfrom
ci-pipeline
Mar 24, 2026
Merged

nourabosaif merged 6 commits into
mainfrom
ci-pipeline

Conversation

@Abasy714

Copy link
Copy Markdown
Collaborator

ci: add devops main CI workflow

What changed

Adds one GitHub Actions workflow file to .github/workflows/:

  • devops.yml — triggers on PRs targeting main

What the pipeline does

devops.yml (2 jobs)

  1. validate-structure — confirms all required DevOps files are present: docker/docker-compose.yml, docker/docker-compose.backend.yml, docker/docker-compose.frontend.yml, backend and frontend Dockerfiles, all scripts (bash + PowerShell), and environments/.env.example. Also validates that .env.example contains all 20 required environment variable keys.
  2. integration — clones the backend and frontend repos, writes a CI .env file with safe non-sensitive values, starts the infrastructure via bash scripts/start-infra.sh, builds services via bash scripts/build.sh, starts the backend, runs migrations and seeds, smoke checks GET /health for {"status":"ok"}, collects Docker logs on failure, then tears everything down via bash scripts/stop.sh

Why

The DevOps repo is the integration point for the entire platform. This pipeline validates that the infrastructure scripts, Compose files, and Dockerfiles all work together end-to-end before any changes are merged. It is the closest thing to a full local environment test that runs automatically.

@Abasy714 Abasy714 closed this Mar 24, 2026
@Abasy714 Abasy714 reopened this Mar 24, 2026
@Abasy714
Abasy714 requested a review from a team as a code owner March 24, 2026 12:52
@nourabosaif
nourabosaif merged commit 1ec7008 into main Mar 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants