Skip to content

Commit d0a275d

Browse files
committed
ci(coverage): code doverage
1 parent 9b9361a commit d0a275d

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,9 @@ jobs:
3535
glpi-version: "${{ matrix.glpi-version }}"
3636
php-version: "${{ matrix.php-version }}"
3737
db-image: "${{ matrix.db-image }}"
38+
39+
coverage-report:
40+
needs: "ci"
41+
uses: "froozeify/GLPI_plugin-ci-workflows/.github/workflows/coverage-report.yml@code-coverage"
42+
with:
43+
plugin-key: "carbon"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Coverage refresh"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: "${{ github.workflow }}-${{ github.ref }}"
10+
cancel-in-progress: true
11+
12+
jobs:
13+
coverage-refresh:
14+
uses: "froozeify/GLPI_plugin-ci-workflows/.github/workflows/coverage-refresh.yml@code-coverage"
15+
with:
16+
plugin-key: "carbon"

.glpi-coverage.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"enabled": true,
3+
"only_list_changed_files": true,
4+
"badge": true,
5+
"overall_coverage_fail_threshold": 0,
6+
"file_coverage_error_min": 50,
7+
"file_coverage_warning_max": 75,
8+
"fail_on_negative_difference": false,
9+
"retention_days": 90
10+
}

0 commit comments

Comments
 (0)