Skip to content

Commit 631032c

Browse files
committed
CI - GH Actions: fix PHPUnti coverage and PHPStan configuration
1 parent 3a2a552 commit 631032c

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest"
8282

8383
- name: "Run PHPUnit"
84-
run: "vendor/bin/phpunit -c phpunit.mysql8.xml --coverage-clover=coverage.xml"
84+
run: "vendor/bin/phpunit --no-coverage"
8585

8686
phpunit-code-coverage:
8787
name: "PHPUnit with Code Coverage"
@@ -161,7 +161,6 @@ jobs:
161161
with:
162162
php-version: "${{ matrix.php-version }}"
163163
extensions: ""
164-
coverage: "pcov"
165164

166165
- name: "Cache dependencies installed with composer"
167166
uses: "actions/cache@v1"
@@ -174,4 +173,4 @@ jobs:
174173
run: "composer install --no-interaction --no-progress --no-suggest"
175174

176175
- name: "Run PHPUnit"
177-
run: "vendor/bin/phpunit"
176+
run: "vendor/bin/phpunit --no-coverage"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@
6767
"minimum-stability": "dev",
6868
"prefer-stable": true,
6969
"scripts": {
70-
"phpstan": "vendor/bin/phpstan analyse -c phpstan.neon src"
70+
"phpstan": "vendor/bin/phpstan analyse -c phpstan.neon"
7171
}
7272
}

phpstan.neon

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
parameters:
22
level: 7
3+
paths:
4+
- src
35
inferPrivatePropertyTypeFromConstructor: true
46
ignoreErrors:
57
- "#Mouf\\\\MoufManager#"
68
- "#Mouf\\\\MoufInstanceDescriptor#"
7-
- '#Method Mouf\\Database\\QueryWriter\\Utils\\FindParametersService::findParameters\(\) should return array<string> but returns array<int, int\|string>#'
9+
- '#Method Mouf\\Database\\QueryWriter\\Utils\\FindParametersService::findParameters\(\) should return array<string> but returns array<int, int\|string>#'

0 commit comments

Comments
 (0)