mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 18:03:37 +02:00
Update tests.yml
This commit is contained in:
parent
7aef6aa29f
commit
584190ad01
1 changed files with 20 additions and 5 deletions
23
.github/workflows/tests.yml
vendored
23
.github/workflows/tests.yml
vendored
|
@ -8,11 +8,17 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
|
name: PHP ${{ matrix.php-versions }} Test
|
||||||
runs-on: ${{ matrix.operating-system }}
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
services:
|
||||||
|
mysql:
|
||||||
|
image: mysql:latest
|
||||||
|
env:
|
||||||
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
|
||||||
php-versions: ['7.2', '7.3', '7.4']
|
php-versions: ['7.2', '7.3', '7.4']
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -39,5 +45,14 @@ jobs:
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
|
- name: Create DB
|
||||||
|
run: php bin/console --env test doctrine:database:create --if-not-exists -n
|
||||||
|
|
||||||
|
- name: Do migrations
|
||||||
|
run: php bin/console --env tes doctrine:migrations:migrate -n
|
||||||
|
|
||||||
|
- name: Load fixtures
|
||||||
|
run: php bin/console --env test doctrine:fixtures:load -n
|
||||||
|
|
||||||
- name: Run PHPunit
|
- name: Run PHPunit
|
||||||
run: ./bin/phpunit --exclude-group DB
|
run: ./bin/phpunit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue