Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/continuous-integration.yml.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: "Continuous integration"

# Code coverage is automatically enabled when a `.glpi-coverage.json` file
# is present at the root of the plugin directory.

on:
push:
branches:
Expand Down Expand Up @@ -33,3 +36,9 @@ jobs:
glpi-version: "${{ matrix.glpi-version }}"
php-version: "${{ matrix.php-version }}"
db-image: "${{ matrix.db-image }}"

coverage-report:
needs: "ci"
uses: "glpi-project/plugin-ci-workflows/.github/workflows/coverage-report.yml@v1"
with:
plugin-key: "{LNAME}"
3 changes: 3 additions & 0 deletions .glpi-coverage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"enabled": false
}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ You can also provide a destination path (ie. if your `empty` directory is not in
* `{UNAME}` will be replaced by the uppercased name,
* `{YEAR}` will be replaced by the current year.

## Enabling Code coverage
By default, code coverage is disabled.

You can enable it by updating the `.glpi-coverage.json`.

Configuration defaults and explanations are available [here](https://github.com/glpi-project/plugin-ci-workflows#code-coverage).

Comment thread
froozeify marked this conversation as resolved.
## Updating Your Plugin

To import the changes made to the _pluginsGLPI empty_ template into your project,
Expand Down