Skip to content

Commit 63387d5

Browse files
committed
fix: PHPUnit coverage
1 parent 5b8c5a7 commit 63387d5

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/test-phpunit.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,10 @@ jobs:
7979
run: |
8080
vendor/bin/phpcov merge --clover build/logs/clover.xml build/cov
8181
82-
coveralls:
83-
needs: [main]
84-
name: Coveralls Finished
85-
runs-on: ubuntu-latest
86-
steps:
87-
- name: Upload Coveralls results
88-
uses: coverallsapp/github-action@master
89-
continue-on-error: true
90-
with:
91-
github-token: ${{ secrets.GITHUB_TOKEN }}
92-
parallel-finished: true
82+
- if: matrix.php-versions == '8.1'
83+
name: Upload coverage to Coveralls
84+
run: |
85+
composer global require php-coveralls/php-coveralls
86+
php-coveralls --verbose --exclude-no-stmt --ansi
87+
env:
88+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

src/Minifyku.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ protected function setVersion(string $mode, array $files, string $dir): array
228228
protected function deployFiles(string $fileType, array $assets, string $dir, ?string $minDir = null, int $levelGzip = 0): array
229229
{
230230
if (! in_array($fileType, ['js', 'css'], true)) {
231-
throw MinifykuException::forWrongFileExtension($fileType);
231+
throw MinifykuException::forWrongFileExtension($fileType); // @codeCoverageIgnore
232232
}
233233

234234
$dir = rtrim($dir, '/');

0 commit comments

Comments
 (0)