Skip to content

Commit 2b9a097

Browse files
authored
fix: PHPUnit GA (#3)
* fix: PHPUnit GA * fix: file source
1 parent 32ffe20 commit 2b9a097

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

.github/workflows/test-phpunit.yml

+7-11
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 }}

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@
7878
"cs": "vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff",
7979
"rector": "vendor/bin/rector process --dry-run",
8080
"phpstan": "bash -c \"XDEBUG_MODE=off phpstan analyse\"",
81-
"test": "vendor/bin/phpunit tests/"
81+
"test": "vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml --coverage-php build/cov/coverage.cov --testsuite main"
8282
}
8383
}

phpunit.xml.dist

+1-4
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,8 @@
4646
</logging>
4747
<source>
4848
<include>
49-
<directory suffix=".php">tests</directory>
49+
<directory suffix=".php">src</directory>
5050
</include>
51-
<exclude>
52-
<directory suffix=".php">tests/_support</directory>
53-
</exclude>
5451
</source>
5552
<php>
5653
<ini name="date.timezone" value="UTC" />

0 commit comments

Comments
 (0)