|
@@ -41,26 +41,3 @@ jobs:
|
|
|
|
|
|
|
|
- name: "Run unit tests with phpunit"
|
|
- name: "Run unit tests with phpunit"
|
|
|
run: ${{ matrix.php-binary }} vendor/bin/phpunit --configuration=phpunit.xml --no-coverage
|
|
run: ${{ matrix.php-binary }} vendor/bin/phpunit --configuration=phpunit.xml --no-coverage
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- code-coverage:
|
|
|
|
|
- name: "Code Coverage"
|
|
|
|
|
- runs-on: ubuntu-latest
|
|
|
|
|
-
|
|
|
|
|
- steps:
|
|
|
|
|
- - name: "Checkout"
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
-
|
|
|
|
|
- - name: "Install locked dependencies with composer"
|
|
|
|
|
- run: php7.4 $(which composer) install --no-interaction --no-progress --no-suggest
|
|
|
|
|
-
|
|
|
|
|
- - name: "Dump Xdebug filter with phpunit/phpunit"
|
|
|
|
|
- run: php7.4 vendor/bin/phpunit --configuration=phpunit.xml --dump-xdebug-filter=.build/phpunit/xdebug-filter.php
|
|
|
|
|
-
|
|
|
|
|
- - name: "Collect code coverage with Xdebug and phpunit/phpunit"
|
|
|
|
|
- run: php7.4 vendor/bin/phpunit --configuration=phpunit.xml --prepend=.build/phpunit/xdebug-filter.php
|
|
|
|
|
-
|
|
|
|
|
- - name: "Send code coverage report to Codecov.io"
|
|
|
|
|
- env:
|
|
|
|
|
- CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
|
- run: bash <(curl -s https://codecov.io/bash)
|
|
|