Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
Fix Coveralls (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Oct 13, 2021
1 parent 930710f commit be9f836
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
- '5.3.*'
include:
- php: '7.4'
symfony: '5.3.*'
bootable: true
deprecations: true
- php: '8.0'
symfony: '5.3.*'
coverage: true
bootable: true
Expand Down Expand Up @@ -62,19 +66,19 @@ jobs:
if: matrix.deprecations == ''
run: echo "SYMFONY_DEPRECATIONS_HELPER=weak" >> $GITHUB_ENV
- name: Bundle is bootable
if: matrix.bootable
if: ${{ matrix.bootable && github.event_name == 'push' }}
env:
SKELETON_VERSION: ${{matrix.symfony}}
run: |
composer create-project "symfony/skeleton:${SKELETON_VERSION}" skeleton
cd skeleton
composer config extra.symfony.allow-contrib true
composer req vincentchalamon/nav-bundle
composer req vincentchalamon/nav-bundle:dev-${GITHUB_REF#refs/heads/}
- name: Run php-cs-fixer tests
run: php-cs-fixer fix --diff --dry-run
- name: Run PHPUnit tests with coverage
if: matrix.coverage
run: vendor/bin/simple-phpunit --colors=always --testdox --coverage-clover clover.xml
run: vendor/bin/simple-phpunit --colors=always --testdox --coverage-clover build/logs/clover.xml
- name: Run PHPUnit tests
if: matrix.coverage == ''
run: vendor/bin/simple-phpunit --colors=always --testdox
Expand All @@ -91,5 +95,5 @@ jobs:
COVERALLS_REPO_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: matrix.coverage
run: |
composer global require --dev --prefer-dist --no-progress --ansi --prefer-stable cedx/coveralls
$HOME/.composer/vendor/bin/coveralls clover.xml
composer global require --prefer-dist --no-progress --ansi php-coveralls/php-coveralls
$HOME/.composer/vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v

0 comments on commit be9f836

Please sign in to comment.