From 388f8d04ed7bb6b4ab7fa007fb0123820ffb1631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= Date: Thu, 18 Apr 2024 14:16:58 +0200 Subject: [PATCH] Replace php-coveralls with official Coveralls GH action --- .coveralls.yml | 2 -- .github/workflows/tests.yaml | 23 +++++++++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) delete mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml deleted file mode 100644 index f6eedd5..0000000 --- a/.coveralls.yml +++ /dev/null @@ -1,2 +0,0 @@ -coverage_clover: coverage-clover.xml -json_path: coveralls-upload.json diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 0d2d5eb..37d30f9 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -6,9 +6,6 @@ on: schedule: - cron: '0 3 * * *' -env: - COVERALLS_SERVICE_NUMBER: ${{ github.run_id }}-${{ github.run_attempt }} - jobs: tests: runs-on: ubuntu-latest @@ -40,11 +37,21 @@ jobs: run: vendor/bin/phpunit --coverage-clover coverage-clover.xml - name: Submit coverage to Coveralls - env: - COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - composer global require --no-progress --dev php-coveralls/php-coveralls guzzlehttp/guzzle:^6.5 - ~/.composer/vendor/bin/php-coveralls -v + uses: coverallsapp/github-action@v2 + with: + flag-name: ${{ github.job }}-PHP-${{ matrix.php-version }} ${{ matrix.dependencies }} + file: coverage-clover.xml + parallel: true + + tests-finished: + needs: tests + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - name: Notify Coveralls of finished builds + uses: coverallsapp/github-action@v2 + with: + parallel-finished: true codestyle: name: "Code style and static analysis"