Skip to content

Commit b54f947

Browse files
committed
ci: add code coverage support
1 parent eaf8967 commit b54f947

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,10 @@ jobs:
3434
php-version: "${{ matrix.php-version }}"
3535
db-image: "${{ matrix.db-image }}"
3636
init-script: "./.github/workflows/create-plugin.sh"
37+
38+
coverage-report:
39+
needs: "ci"
40+
uses: "glpi-project/plugin-ci-workflows/.github/workflows/coverage-report.yml@v1"
41+
with:
42+
plugin-key: "empty"
43+
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: "glpi-project/plugin-ci-workflows/.github/workflows/coverage-refresh.yml@v1"
15+
with:
16+
plugin-key: "empty"

.glpi-coverage.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"enabled": false
3+
}

0 commit comments

Comments
 (0)