Skip to content

Commit

Permalink
chore: upload scrutinizer coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tlayh committed Apr 30, 2024
1 parent 3cda6ea commit 25dbcd2
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 10

- name: Set up PHP Version ${{ matrix.php }}
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -80,9 +82,14 @@ jobs:
typo3DatabasePassword: root
typo3DatabaseUsername: root

- name: Upload coverage results to Scrutinizer
- name: Upload functional coverage results to Scrutinizer
uses: sudo-bot/action-scrutinizer@latest
if: matrix.typo3 == '^11.5' && matrix.php == '8.3'
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover unittest-coverage.clover
find 'Tests/Functional' -wholename '*Test.php' -exec php ocular.phar code-coverage:upload --format=php-clover {}functionaltest-coverage.clover \;
with:
cli-args: "--format=php-clover functional-coverage.clover --revision=${{ github.event.pull_request.head.sha || github.sha }}"

- name: Upload unit coverage results to Scrutinizer
uses: sudo-bot/action-scrutinizer@latest
if: matrix.typo3 == '^11.5' && matrix.php == '8.3'
with:
cli-args: "--format=php-clover unittest-coverage.clover --revision=${{ github.event.pull_request.head.sha || github.sha }}"

0 comments on commit 25dbcd2

Please sign in to comment.