Skip to content

Commit

Permalink
♻️ codeclimate, added a few tests and fix a few bugs
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <b@bnomei.com>
  • Loading branch information
bnomei committed Jul 21, 2024
1 parent d72ea8e commit dd20536
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pest-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ jobs:
- name: Install
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Run Pest Tests
run: |
php tests/patch.php
php ./vendor/bin/pest --coverage --coverage-clover=${{github.workspace}}/tests/clover.xml
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v8.0.0
with:
coverageCommand: composer coverage
coverageLocations: ${{github.workspace}}/build/logs/clover.xml:clover
#coverageCommand: composer coverage
coverageLocations: ${{github.workspace}}/tests/clover.xml:clover
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"test": "./vendor/bin/pest",
"coverage": [
"php tests/patch.php",
"php ./vendor/bin/pest --coverage --coverage-clover=build/logs/clover.xml"
"php ./vendor/bin/pest --coverage --coverage-clover=tests/clover.xml"
],
"dist": [
"npm run format",
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</php>
<coverage>
<report>
<clover outputFile="build/logs/clover.xml"/>
<clover outputFile="tests/clover.xml"/>
</report>
</coverage>
<source>
Expand Down

0 comments on commit dd20536

Please sign in to comment.