|
94 | 94 | - name: Initialize devkit |
95 | 95 | run: kcode init |
96 | 96 |
|
97 | | - # Patch generated phpunit.xml.dist — disable failOnWarning and strict |
98 | | - # coverage metadata to avoid false-positive warnings from PHPUnit 12. |
99 | | - - name: Patch phpunit.xml.dist |
100 | | - run: | |
101 | | - sed -i 's/failOnWarning="true"/failOnWarning="false"/' .kcode/phpunit.xml.dist |
102 | | - sed -i 's/failOnRisky="true"/failOnRisky="false"/' .kcode/phpunit.xml.dist |
103 | | - sed -i 's/beStrictAboutCoverageMetadata="true"/beStrictAboutCoverageMetadata="false"/' .kcode/phpunit.xml.dist |
104 | | - sed -i 's/ restrictWarnings="true"//g' .kcode/phpunit.xml.dist |
105 | | - sed -i 's/ restrictDeprecations="true"//g' .kcode/phpunit.xml.dist |
106 | | - sed -i 's/ restrictNotices="true"//g' .kcode/phpunit.xml.dist |
107 | | -
|
108 | 97 | # Runs PHPStan Level 9 then Psalm sequentially — both must pass |
109 | 98 | - name: Run PHPStan + Psalm via kcode |
110 | 99 | run: kcode analyse |
@@ -171,17 +160,6 @@ jobs: |
171 | 160 | - name: Initialize devkit |
172 | 161 | run: kcode init |
173 | 162 |
|
174 | | - # Patch generated phpunit.xml.dist — disable failOnWarning and strict |
175 | | - # coverage metadata to avoid false-positive warnings from PHPUnit 12. |
176 | | - - name: Patch phpunit.xml.dist |
177 | | - run: | |
178 | | - sed -i 's/failOnWarning="true"/failOnWarning="false"/' .kcode/phpunit.xml.dist |
179 | | - sed -i 's/failOnRisky="true"/failOnRisky="false"/' .kcode/phpunit.xml.dist |
180 | | - sed -i 's/beStrictAboutCoverageMetadata="true"/beStrictAboutCoverageMetadata="false"/' .kcode/phpunit.xml.dist |
181 | | - sed -i 's/ restrictWarnings="true"//g' .kcode/phpunit.xml.dist |
182 | | - sed -i 's/ restrictDeprecations="true"//g' .kcode/phpunit.xml.dist |
183 | | - sed -i 's/ restrictNotices="true"//g' .kcode/phpunit.xml.dist |
184 | | -
|
185 | 163 | - name: Run tests with coverage (pcov) |
186 | 164 | run: kcode test --coverage |
187 | 165 |
|
|
0 commit comments