From 25dbcd2b3c79e2869cf4962a88b464e70fa5fdc4 Mon Sep 17 00:00:00 2001 From: "thomas.layh" Date: Tue, 30 Apr 2024 14:24:08 +0200 Subject: [PATCH] chore: upload scrutinizer coverage --- .github/workflows/tests.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 94c5f8e..8ae3cc5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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 }}"