Fix usage of DSN with password and empty username #502
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI" | |
on: | |
push: | |
pull_request: | |
jobs: | |
phpunit: | |
name: "PHPUnit" | |
runs-on: "ubuntu-latest" | |
env: | |
SYMFONY_REQUIRE: "${{matrix.symfony-require}}" | |
SYMFONY_DEPRECATIONS_HELPER: "max[self]=0" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- dependency-versions: "lowest" | |
php-version: "7.4" | |
php-extensions: "redis-5.3.0" | |
- symfony-require: "4.4.*" | |
php-version: "8.1" | |
php-extensions: "redis" | |
- symfony-require: "5.4.*" | |
php-version: "8.2" | |
php-extensions: "redis" | |
- symfony-require: "6.2.*" | |
php-version: "8.2" | |
php-extensions: "redis" | |
- symfony-require: "6.3.*" | |
php-version: "8.2" | |
php-extensions: "redis-phpredis/phpredis@develop" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
with: | |
fetch-depth: 2 | |
- name: "Install requirements" | |
run: sudo apt-get update && sudo apt-get install --no-install-recommends redis-server ruby-foreman | |
- name: "Start background services" | |
run: sudo systemctl stop redis-server && foreman start & | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
extensions: "${{ matrix.php-extensions }},relay" | |
ini-values: "zend.assertions=1, max_execution_time=30" | |
- name: "Install symfony/flex" | |
run: "composer require --no-progress --no-scripts --no-plugins symfony/flex" | |
- name: "Install dependencies with Composer" | |
uses: "ramsey/composer-install@v2" | |
with: | |
dependency-versions: "${{ matrix.dependency-versions }}" | |
- name: "Run PHPUnit" | |
run: vendor/bin/phpunit -v |