mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Update tests.yml
This commit is contained in:
parent
0061b5fbc7
commit
308117138a
1 changed files with 8 additions and 2 deletions
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue