This commit is contained in:
Matteo Gheza 2020-05-26 10:54:08 +02:00
parent 7b71534974
commit bcf86d2bbb
2 changed files with 15 additions and 2 deletions

View File

@ -32,7 +32,7 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, short_open_tag=On
coverage: xdebug
coverage: xdebug, pcov
#tools: php-cs-fixer, phpunit
- name: Shutdown Ubuntu MySQL (SUDO)
@ -55,8 +55,18 @@ jobs:
working-directory: ${{env.working-directory}}
- name: Run test suite
run: vendor/bin/codecept run --steps
run: vendor/bin/codecept run --steps --coverage --coverage-xml --coverage-html
working-directory: ${{env.working-directory}}
- name: Upload coverage to Codecov
if: "${{ success() }}"
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./server/tests/_output/coverage.xml
flags: unittests
name: codecov
fail_ci_if_error: true
- name: Upload Tests Artifact
if: ${{ always() }}

View File

@ -8,3 +8,6 @@ actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
coverage:
enabled: true
show_only_summary: false