Skip to content

Commit

Permalink
Fix coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
peteraba committed Mar 1, 2021
1 parent 5a4152b commit e37b779
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,10 @@ jobs:

- name: Build the project
run: make build

- name: Coverage report
if: ${{ matrix.operating-system == 'ubuntu-latest' && matrix.php-versions == '7.4' }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make coverage
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ install:
ifeq (,$(wildcard /usr/local/bin/composer))
./bin/composer-install.sh
mv composer.phar /usr/local/bin/composer
endif
ifeq (,$(wildcard /usr/local/bin/php-coveralls))
curl -L --output php-coveralls.phar https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
mv php-coveralls.phar /usr/local/bin/php-coveralls
chmod +x /usr/local/bin/php-coveralls
endif
XDEBUG_MODE=off composer install --no-progress --prefer-dist --optimize-autoloader

Expand All @@ -26,6 +31,7 @@ unit:

coverage:
XDEBUG_MODE=coverage ./vendor/bin/phpunit -c phpunit-cov.xml
XDEBUG_MODE=off php-coveralls -vvv --coverage_clover=./tmp/report/clover.xml --json_path=./tmp/report/coveralls-upload.json

pull:
git pull
Expand Down
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e37b779

Please sign in to comment.