This repository contains multiple source code components with unit tests. The purpose of the repo is to illustrate how CodeScene's code coverage gates work. As such, this repository is part of the CodeScene product documentation.
That documentation explains how to enable code coverage gates on your own repositories.
That is a repository hosting multiple different source code components - each with a separate build.
In our case, the modules are indentical, they just have different names:
- calculator1
- calculator2
- calculator3
In .github/workflows, you will find corresponding build pipelines definitions.
The reusable check-coverage action takes a numeric project-id, passes it to
cs-coverage check --project-id, and accepts an optional onprem-url for
CodeScene On-prem. For Cloud projects, the action uses the CLI's default API URL.