CI/CD
Better Reports includes a GitHub Actions workflow for automated testing and Docker image publishing.
Workflow
.github/workflows/ci.yml
The CI pipeline runs on every push and pull request to the main branch:
Jobs
- Lint — Runs
oxlinton backend and frontend code - Test — Runs
vitestfor unit and integration tests - Build UI — Builds the React frontend with Vite
- Build Docker — Builds and pushes the Docker image to GitHub Container Registry
Docker Image
The workflow builds a multi-architecture Docker image (linux/amd64, linux/arm64) and pushes it to ghcr.io/dlampatricio/better-reports.
Using the Docker Image
bash
docker pull ghcr.io/dlampatricio/better-reports:latestSetting Up Your Own CI
To use the CI pipeline in your fork:
- Enable GitHub Actions in your repository
- The Docker push step requires a
GITHUB_TOKENwithpackages:writepermission (automatically provided for GitHub Actions) - Update the image name in the workflow file to match your registry