diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 458dd16..14d5dbb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,6 +38,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 10 - name: Set up PHP Version ${{ matrix.php }} uses: shivammathur/setup-php@v2 @@ -75,7 +77,7 @@ jobs: .Build/bin/phpunit --coverage-filter Classes --coverage-clover=unittest-coverage.clover --colors -c $UNIT_XML Tests/Unit/ - name: Upload coverage results to Scrutinizer - if: matrix.typo3 == '^11.5' && matrix.php == '7.4' - run: | - wget https://scrutinizer-ci.com/ocular.phar - php ocular.phar code-coverage:upload --format=php-clover unittest-coverage.clover + uses: sudo-bot/action-scrutinizer@latest + if: matrix.typo3 == '^11.5' && matrix.php == '8.3' + with: + cli-args: "--format=php-clover .Build/reports/php_all_tests/coverage_clover.xml --revision=${{ github.event.pull_request.head.sha || github.sha }}"