Skip to content

Commit 8487d91

Browse files
committed
CI
1 parent fbb4390 commit 8487d91

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

.github/workflows/checks.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,6 @@ jobs:
3232
XDEBUG_MODE: coverage
3333
run: composer check
3434

35-
-
36-
name: Output line coverage
37-
run: head cache/coverage/coverage.txt | grep Lines
38-
39-
-
40-
name: Report patch coverage
41-
if: github.event_name == 'pull_request'
42-
run: |
43-
if git diff --name-only ${{ github.event.pull_request.base.sha }} | grep -q '\.php$'; then
44-
git diff ${{ github.event.pull_request.base.sha }} > changes.patch
45-
vendor/bin/phpcov patch-coverage --path-prefix $(pwd) cache/coverage/coverage.cov changes.patch || true
46-
else
47-
echo "No PHP files changed, skipping patch coverage report"
48-
fi
49-
5035
cda:
5136
runs-on: ubuntu-latest
5237
strategy:

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"@check:ec",
8080
"@check:cs",
8181
"@check:types",
82-
"@check:tests",
82+
"@check:coverage",
8383
"@check:collisions",
8484
"@check:dependencies"
8585
],
@@ -88,6 +88,10 @@
8888
"composer normalize --dry-run --no-update-lock",
8989
"composer validate --strict"
9090
],
91+
"check:coverage": [
92+
"XDEBUG_MODE=coverage phpunit tests --coverage-clover cache/clover.xml",
93+
"coverage-guard check cache/clover.xml"
94+
],
9195
"check:cs": "phpcs",
9296
"check:dependencies": "composer-dependency-analyser",
9397
"check:ec": "ec src tests",

phpunit.xml.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
<include>
1616
<directory suffix=".php">src</directory>
1717
</include>
18-
<report>
19-
<clover outputFile="cache/clover.xml"/>
20-
</report>
2118
</coverage>
2219
<php>
2320
<ini name="error_reporting" value="-1"/>

0 commit comments

Comments
 (0)