[CI] Use default env in MySQL workflow

This commit is contained in:
Grzegorz Sadowski 2024-10-16 11:19:35 +02:00
parent 98b89aaa80
commit 1edb3b2699
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
2 changed files with 8 additions and 11 deletions

View file

@ -44,14 +44,14 @@ jobs:
behat-no-js:
needs: get-matrix
runs-on: ubuntu-latest
name: "Non-JS, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }} (${{ matrix.env }}), MySQL ${{ matrix.mysql }}, Twig ${{ matrix.twig }}, API Platform ${{ matrix.api-platform }}"
name: "Non-JS, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }} (${{ matrix.env || 'test_cached' }}), MySQL ${{ matrix.mysql }}, Twig ${{ matrix.twig }}, API Platform ${{ matrix.api-platform }}"
timeout-minutes: 45
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix) }}
env:
APP_ENV: ${{ matrix.env }}
APP_ENV: ${{ matrix.env || 'test_cached' }}
DATABASE_URL: "mysql://root:root@127.0.0.1/sylius?charset=utf8mb4&serverVersion=${{ matrix.mysql }}"
steps:
@ -132,14 +132,14 @@ jobs:
behat-ui-js-chromedriver:
needs: get-matrix
runs-on: ubuntu-latest
name: "JS with Chromedriver, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }} (${{ matrix.env }}), MySQL ${{ matrix.mysql }}, Twig ${{ matrix.twig }}, API Platform ${{ matrix.api-platform }}"
name: "JS with Chromedriver, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }} (${{ matrix.env || 'test_cached' }}), MySQL ${{ matrix.mysql }}, Twig ${{ matrix.twig }}, API Platform ${{ matrix.api-platform }}"
timeout-minutes: 45
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix) }}
env:
APP_ENV: ${{ matrix.env }}
APP_ENV: ${{ matrix.env || 'test_cached' }}
DATABASE_URL: "mysql://root:root@127.0.0.1/sylius?charset=utf8mb4&serverVersion=${{ matrix.mysql }}"
steps:
@ -210,14 +210,14 @@ jobs:
behat-ui-js-panther:
needs: get-matrix
runs-on: ubuntu-latest
name: "JS with Panther, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }} (${{ matrix.env }}), MySQL ${{ matrix.mysql }}, Twig ${{ matrix.twig }}, API Platform ${{ matrix.api-platform }}"
name: "JS with Panther, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }} (${{ matrix.env || 'test_cached' }}), MySQL ${{ matrix.mysql }}, Twig ${{ matrix.twig }}, API Platform ${{ matrix.api-platform }}"
timeout-minutes: 45
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix) }}
env:
APP_ENV: ${{ matrix.env }}
APP_ENV: ${{ matrix.env || 'test_cached' }}
DATABASE_URL: "mysql://root:root@127.0.0.1/sylius?charset=utf8mb4&serverVersion=${{ matrix.mysql }}"
steps:

View file

@ -39,16 +39,14 @@
"symfony": "^6.4",
"api-platform": "^3.3",
"mysql": "8.0",
"twig": "^3.3",
"env": "test_cached"
"twig": "^3.3"
},
{
"php": "8.3",
"symfony": "^7.1",
"api-platform": "^3.3",
"mysql": "8.4",
"twig": "^3.3",
"env": "test_cached"
"twig": "^3.3"
},
{
"php": "8.3",
@ -112,7 +110,6 @@
"api-platform": ["^3.3"],
"mysql": ["8.0", "8.4"],
"twig": ["^3.3"],
"env": "test_cached",
"include": [
{
"php": "8.3",