Skip to content

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
buchmarv committed Oct 7, 2024
1 parent ce9fa77 commit c7d0612
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,21 @@ jobs:
- name: CGL
run: composer t3g:cgl

- name: Tests
run: composer t3g:test:php

- name: Git Status
run: |
git status
git status | grep -q "nothing to commit, working tree clean"
- name: Tests
run: |
php -dpcov.enabled=1 -dpcov.directory="." ./vendor/bin/phpunit -c build/phpunit.xml.dist --log-junit var/log/junit/phpunit.junit.xml --coverage-clover var/log/junit/coverage.xml --coverage-xml var/log/junit/coverage-xml/
env:
COMPOSER_PROCESS_TIMEOUT: 1200

- name: Upload coverage results to Coveralls
continue-on-error: true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls --no-progress --no-suggest --no-interaction
/home/runner/.composer/vendor/bin/php-coveralls -c build/.coveralls.yml -vvv --json_path=var/log/coveralls-upload.json
2 changes: 2 additions & 0 deletions build/.coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage_clover: var/log/junit/coverage.xml

0 comments on commit c7d0612

Please sign in to comment.