diff --git a/examples/laravel-mysql.yml b/examples/laravel-mysql.yml index 9ec0de61..5de24522 100644 --- a/examples/laravel-mysql.yml +++ b/examples/laravel-mysql.yml @@ -21,7 +21,7 @@ jobs: MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: laravel ports: - - 3306 + - 3306/tcp options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 redis: image: redis @@ -64,7 +64,9 @@ jobs: run: php artisan migrate -v env: DB_PORT: ${{ job.services.mysql.ports['3306'] }} + REDIS_PORT: ${{ job.services.redis.ports['6379'] }} - name: Test with phpunit run: vendor/bin/phpunit --coverage-text env: - DB_PORT: ${{ job.services.mysql.ports['3306'] }} \ No newline at end of file + DB_PORT: ${{ job.services.mysql.ports['3306'] }} + REDIS_PORT: ${{ job.services.redis.ports['6379'] }} \ No newline at end of file diff --git a/examples/laravel-postgres.yml b/examples/laravel-postgres.yml index aa248058..2107dfa8 100644 --- a/examples/laravel-postgres.yml +++ b/examples/laravel-postgres.yml @@ -66,7 +66,9 @@ jobs: run: php artisan migrate -v env: DB_PORT: ${{ job.services.postgres.ports[5432] }} + REDIS_PORT: ${{ job.services.redis.ports['6379'] }} - name: Test with phpunit run: vendor/bin/phpunit --coverage-text env: - DB_PORT: ${{ job.services.postgres.ports[5432] }} \ No newline at end of file + DB_PORT: ${{ job.services.postgres.ports[5432] }} + REDIS_PORT: ${{ job.services.redis.ports['6379'] }} \ No newline at end of file diff --git a/examples/lumen-mysql.yml b/examples/lumen-mysql.yml index a51e6f40..d358e500 100644 --- a/examples/lumen-mysql.yml +++ b/examples/lumen-mysql.yml @@ -21,7 +21,7 @@ jobs: MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: lumen ports: - - 3306 + - 3306/tcp options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 redis: image: redis @@ -64,7 +64,9 @@ jobs: run: php artisan migrate -v env: DB_PORT: ${{ job.services.mysql.ports['3306'] }} + REDIS_PORT: ${{ job.services.redis.ports['6379'] }} - name: Test with phpunit run: vendor/bin/phpunit --coverage-text env: - DB_PORT: ${{ job.services.mysql.ports['3306'] }} \ No newline at end of file + DB_PORT: ${{ job.services.mysql.ports['3306'] }} + REDIS_PORT: ${{ job.services.redis.ports['6379'] }} \ No newline at end of file diff --git a/examples/lumen-postgres.yml b/examples/lumen-postgres.yml index c4dabef8..9117c37f 100644 --- a/examples/lumen-postgres.yml +++ b/examples/lumen-postgres.yml @@ -66,7 +66,9 @@ jobs: run: php artisan migrate -v env: DB_PORT: ${{ job.services.postgres.ports[5432] }} + REDIS_PORT: ${{ job.services.redis.ports['6379'] }} - name: Test with phpunit run: vendor/bin/phpunit --coverage-text env: DB_PORT: ${{ job.services.postgres.ports[5432] }} + REDIS_PORT: ${{ job.services.redis.ports['6379'] }} diff --git a/examples/phalcon-mysql.yml b/examples/phalcon-mysql.yml index d91b12e6..9e4ffb18 100644 --- a/examples/phalcon-mysql.yml +++ b/examples/phalcon-mysql.yml @@ -24,7 +24,7 @@ jobs: MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: phalcon ports: - - 3306 + - 3306/tcp options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 strategy: fail-fast: false diff --git a/examples/symfony-mysql.yml b/examples/symfony-mysql.yml index 98a38826..ecee71e1 100644 --- a/examples/symfony-mysql.yml +++ b/examples/symfony-mysql.yml @@ -13,7 +13,7 @@ jobs: MYSQL_ROOT_PASSWORD: symfony MYSQL_DATABASE: symfony ports: - - 3306 + - 3306/tcp options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 strategy: fail-fast: false diff --git a/examples/yii2-mysql.yml b/examples/yii2-mysql.yml index 12da7633..81e4b406 100644 --- a/examples/yii2-mysql.yml +++ b/examples/yii2-mysql.yml @@ -19,7 +19,7 @@ jobs: MYSQL_ROOT_PASSWORD: yii MYSQL_DATABASE: yii ports: - - 3306 + - 3306/tcp options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 strategy: fail-fast: false