mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-23 21:38:00 +00:00
:octocat: logging & coverage -> .build
This commit is contained in:
@@ -27,7 +27,6 @@ jobs:
|
||||
|
||||
dependencies:
|
||||
- lowest
|
||||
# - locked
|
||||
- highest
|
||||
|
||||
steps:
|
||||
@@ -38,13 +37,32 @@ jobs:
|
||||
if: matrix.dependencies == 'lowest'
|
||||
run: ${{ matrix.php-binary }} $(which composer) update --no-interaction --no-progress --no-suggest --prefer-lowest
|
||||
|
||||
# - name: "Install locked dependencies with composer"
|
||||
# if: matrix.dependencies == 'locked'
|
||||
# run: ${{ matrix.php-binary }} $(which composer) install --no-interaction --no-progress --no-suggest
|
||||
|
||||
- name: "Install highest dependencies with composer"
|
||||
if: matrix.dependencies == 'highest'
|
||||
run: ${{ matrix.php-binary }} $(which composer) update --no-interaction --no-progress --no-suggest
|
||||
|
||||
- name: "Run unit tests with phpunit"
|
||||
run: ${{ matrix.php-binary }} vendor/bin/phpunit --configuration=phpunit.xml
|
||||
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@v1.1.0
|
||||
|
||||
- name: "Install locked dependencies with composer"
|
||||
run: php7.3 $(which composer) install --no-interaction --no-progress --no-suggest
|
||||
|
||||
- name: "Dump Xdebug filter with phpunit/phpunit"
|
||||
run: php7.3 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.3 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)
|
||||
|
||||
Reference in New Issue
Block a user