Update tests.yml

This commit is contained in:
Jan Böhmer 2020-05-25 23:33:05 +02:00 committed by GitHub
parent 0061b5fbc7
commit 308117138a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,7 @@ jobs:
APP_ENV: test APP_ENV: test
SYMFONY_DEPRECATIONS_HELPER: disabled SYMFONY_DEPRECATIONS_HELPER: disabled
DATABASE_URL: 'mysql://root:1234@127.0.0.1:3306/part-db_test' DATABASE_URL: 'mysql://root:1234@127.0.0.1:3306/part-db_test'
PHP_VERSION: ${{ matrix.php-versions }}
strategy: strategy:
matrix: matrix:
@ -89,5 +90,10 @@ jobs:
- name: Load fixtures - name: Load fixtures
run: php bin/console --env test doctrine:fixtures:load -n run: php bin/console --env test doctrine:fixtures:load -n
- name: Run PHPunit - name: Run PHPunit and generate coverage
run: ./bin/phpunit run: ./bin/phpunit --coverage-clover=coverage.xml
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
env_vars: PHP_VERSION