No description
  • JavaScript 84.7%
  • Dockerfile 15.3%
Find a file
mrouissi 4e1f1ab301
All checks were successful
CI Pipeline / unit-tests (push) Successful in 8s
CI Pipeline / smoke-tests (push) Successful in 8s
CI Pipeline / build-and-push (push) Successful in 10s
fix: set DOCKER_HOST for build job
2026-02-14 14:42:58 +01:00
.forgejo/workflows fix: set DOCKER_HOST for build job 2026-02-14 14:42:58 +01:00
src feat: initial demo-app with CI pipeline 2026-02-14 12:23:26 +01:00
tests feat: initial demo-app with CI pipeline 2026-02-14 12:23:26 +01:00
.dockerignore feat: initial demo-app with CI pipeline 2026-02-14 12:23:26 +01:00
.gitignore feat: initial demo-app with CI pipeline 2026-02-14 12:23:26 +01:00
Dockerfile feat: initial demo-app with CI pipeline 2026-02-14 12:23:26 +01:00
package-lock.json fix: add package-lock.json 2026-02-14 13:45:24 +01:00
package.json fix: exclude smoke tests from jest 2026-02-14 13:50:09 +01:00
README.md feat: initial demo-app with CI pipeline 2026-02-14 12:23:26 +01:00

demo-app

Minimal Node.js/Express app to demonstrate the Forgejo CI/CD pipeline (Milestone 3).

Pipeline

Trigger: push a Git tag matching v* (e.g. v1.0.0).

Job Runner label What it does
unit-tests docker (node:20) npm test — Jest + supertest
smoke-tests docker (node:20) Starts the real server, hits HTTP endpoints
build-and-push docker-cli (docker:cli) Builds image, pushes to registry:5000/demo-app:<tag>

Local development

npm install
npm start        # http://localhost:3000
npm test         # unit tests
npm run test:smoke  # integration / smoke tests