Skip to content

Commit

Permalink
Submit code coverage to Coveralls only for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Jan 18, 2024
1 parent 0be8571 commit bd01bdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit bd01bdf

Please sign in to comment.