From e4624813d63c0738771fd8b2713d3035fc052a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= Date: Thu, 18 Jan 2024 10:47:00 +0100 Subject: [PATCH] Submit code coverage to Coveralls only for pull requests --- .github/workflows/php.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/php.yaml b/.github/workflows/php.yaml index d5d2c0f..549e865 100644 --- a/.github/workflows/php.yaml +++ b/.github/workflows/php.yaml @@ -48,7 +48,7 @@ jobs: vendor/bin/phpunit --testsuite unit --colors=always --coverage-clover build/logs/clover.xml - name: Submit coverage to Coveralls - if: github.event_name != 'pull_request' + if: github.event_name == 'pull_request' env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | @@ -82,6 +82,7 @@ jobs: vendor/bin/phpunit --testsuite functional --colors=always --coverage-clover build/logs/clover.xml - name: Submit coverage to Coveralls + if: github.event_name == 'pull_request' env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: |