No description
- JavaScript 84.7%
- Dockerfile 15.3%
| .forgejo/workflows | ||
| src | ||
| tests | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
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