diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 56e8965..a61a8d1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -133,26 +133,14 @@ jobs: if: ${{ matrix.coverage == true }} run: composer coverage - # Uploading the results with PHP Coveralls v1 won't work from GH Actions, so switch the PHP version. - - name: Switch to PHP 7.4 - if: ${{ success() && matrix.coverage == true && ( matrix.php == '5.4' || startsWith( matrix.php, '8' ) ) }} - uses: shivammathur/setup-php@v2 - with: - php-version: 7.4 - coverage: none - - # Global install is used to prevent a conflict with the local composer.lock in PHP 8.0+. - - name: Install Coveralls - if: ${{ success() && matrix.coverage == true }} - run: composer global require php-coveralls/php-coveralls:"^2.5.3" --no-interaction - - name: Upload coverage results to Coveralls if: ${{ success() && matrix.coverage == true }} - env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }} - COVERALLS_PARALLEL: true - COVERALLS_FLAG_NAME: php-${{ matrix.php }}-phpunit-${{ matrix.phpunit }} - run: php-coveralls -v -x build/logs/clover.xml + uses: coverallsapp/github-action@v2 + with: + file: build/logs/clover.xml + format: clover + flag-name: php-${{ matrix.php }}-phpunit-${{ matrix.phpunit }} + parallel: true coveralls-finish: needs: test @@ -162,5 +150,4 @@ jobs: - name: Coveralls Finished uses: coverallsapp/github-action@v2 with: - github-token: ${{ secrets.COVERALLS_TOKEN }} parallel-finished: true