From 6ae3564af4baeb0455509d53b34d20b58a6d4fc4 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 3 Apr 2022 04:24:07 +0530 Subject: [PATCH] Improve examples --- examples/cakephp-mysql.yml | 8 ++++++-- examples/cakephp-postgres.yml | 8 ++++++++ examples/laravel-mysql.yml | 10 +++++++--- examples/laravel-postgres.yml | 7 +++++++ examples/lumen-mysql.yml | 8 ++++++-- examples/lumen-postgres.yml | 7 +++++++ examples/phalcon-mysql.yml | 8 ++++++-- examples/phalcon-postgres.yml | 7 +++++++ examples/symfony-mysql.yml | 8 ++++++-- examples/symfony-postgres.yml | 7 +++++++ examples/yii2-mysql.yml | 8 ++++++-- examples/yii2-postgres.yml | 7 +++++++ 12 files changed, 80 insertions(+), 13 deletions(-) diff --git a/examples/cakephp-mysql.yml b/examples/cakephp-mysql.yml index 8f32cd76..f55d8257 100644 --- a/examples/cakephp-mysql.yml +++ b/examples/cakephp-mysql.yml @@ -8,6 +8,8 @@ jobs: matrix: php-versions: ['7.4', '8.0', '8.1'] runs-on: ubuntu-latest + + # Docs: https://docs.github.com/en/actions/using-containerized-services services: mysql: image: mysql:latest @@ -38,8 +40,10 @@ jobs: extensions: mbstring, intl, redis, pdo_mysql coverage: pcov - - name: Start mysql service - run: sudo systemctl start mysql + # Local MySQL service in GitHub hosted environments is disabled by default. + # If you are using it instead of service containers, make sure you start it. + # - name: Start mysql service + # run: sudo systemctl start mysql.service - name: Get composer cache directory id: composer-cache diff --git a/examples/cakephp-postgres.yml b/examples/cakephp-postgres.yml index b72694e6..04cbbc91 100644 --- a/examples/cakephp-postgres.yml +++ b/examples/cakephp-postgres.yml @@ -8,6 +8,8 @@ jobs: matrix: php-versions: ['7.4', '8.0', '8.1'] runs-on: ubuntu-latest + + # Docs: https://docs.github.com/en/actions/using-containerized-services services: postgres: image: postgres:latest @@ -38,6 +40,11 @@ jobs: extensions: mbstring, intl, redis, pdo_pgsql coverage: pcov + # Local PostgreSQL service in GitHub hosted environments is disabled by default. + # If you are using it instead of service containers, make sure you start it. + # - name: Start postgresql service + # run: sudo systemctl start postgresql.service + - name: Get composer cache directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" @@ -103,6 +110,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 + # Docs: https://github.com/shivammathur/setup-php - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/examples/laravel-mysql.yml b/examples/laravel-mysql.yml index 559eac7a..ab92596f 100644 --- a/examples/laravel-mysql.yml +++ b/examples/laravel-mysql.yml @@ -12,7 +12,9 @@ jobs: BROADCAST_DRIVER: log CACHE_DRIVER: redis QUEUE_CONNECTION: redis - SESSION_DRIVER: redis + SESSION_DRIVER: redis + + # Docs: https://docs.github.com/en/actions/using-containerized-services services: mysql: image: mysql:latest @@ -45,8 +47,10 @@ jobs: extensions: mbstring, dom, fileinfo, mysql coverage: xdebug - - name: Start mysql service - run: sudo systemctl start mysql + # Local MySQL service in GitHub hosted environments is disabled by default. + # If you are using it instead of service containers, make sure you start it. + # - name: Start mysql service + # run: sudo systemctl start mysql.service - name: Get composer cache directory id: composer-cache diff --git a/examples/laravel-postgres.yml b/examples/laravel-postgres.yml index 913a1c23..59994e6d 100644 --- a/examples/laravel-postgres.yml +++ b/examples/laravel-postgres.yml @@ -15,6 +15,8 @@ jobs: DB_PASSWORD: postgres DB_USERNAME: postgres DB_DATABASE: postgres + + # Docs: https://docs.github.com/en/actions/using-containerized-services services: postgres: image: postgres:latest @@ -47,6 +49,11 @@ jobs: extensions: mbstring, dom, fileinfo, pgsql coverage: xdebug + # Local PostgreSQL service in GitHub hosted environments is disabled by default. + # If you are using it instead of service containers, make sure you start it. + # - name: Start postgresql service + # run: sudo systemctl start postgresql.service + - name: Get composer cache directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" diff --git a/examples/lumen-mysql.yml b/examples/lumen-mysql.yml index deb3939d..af89d7f9 100644 --- a/examples/lumen-mysql.yml +++ b/examples/lumen-mysql.yml @@ -13,6 +13,8 @@ jobs: CACHE_DRIVER: redis QUEUE_CONNECTION: redis SESSION_DRIVER: redis + + # Docs: https://docs.github.com/en/actions/using-containerized-services services: mysql: image: mysql:latest @@ -45,8 +47,10 @@ jobs: extensions: mbstring, dom, fileinfo, mysql coverage: xdebug - - name: Start mysql service - run: sudo systemctl start mysql + # Local MySQL service in GitHub hosted environments is disabled by default. + # If you are using it instead of service containers, make sure you start it. + # - name: Start mysql service + # run: sudo systemctl start mysql.service - name: Get composer cache directory id: composer-cache diff --git a/examples/lumen-postgres.yml b/examples/lumen-postgres.yml index 88ea9050..fd3f17e7 100644 --- a/examples/lumen-postgres.yml +++ b/examples/lumen-postgres.yml @@ -15,6 +15,8 @@ jobs: DB_PASSWORD: postgres DB_USERNAME: postgres DB_DATABASE: postgres + + # Docs: https://docs.github.com/en/actions/using-containerized-services services: postgres: image: postgres:latest @@ -47,6 +49,11 @@ jobs: extensions: mbstring, dom, fileinfo, pgsql coverage: xdebug + # Local PostgreSQL service in GitHub hosted environments is disabled by default. + # If you are using it instead of service containers, make sure you start it. + # - name: Start postgresql service + # run: sudo systemctl start postgresql.service + - name: Get composer cache directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" diff --git a/examples/phalcon-mysql.yml b/examples/phalcon-mysql.yml index c1812a27..160d286e 100644 --- a/examples/phalcon-mysql.yml +++ b/examples/phalcon-mysql.yml @@ -16,6 +16,8 @@ jobs: DB_PASSWORD: password CODECEPTION_URL: 127.0.0.1 CODECEPTION_PORT: 8888 + + # Docs: https://docs.github.com/en/actions/using-containerized-services services: mysql: image: mysql:latest @@ -45,8 +47,10 @@ jobs: extensions: mbstring, dom, zip, phalcon4, mysql coverage: xdebug - - name: Start mysql service - run: sudo systemctl start mysql + # Local MySQL service in GitHub hosted environments is disabled by default. + # If you are using it instead of service containers, make sure you start it. + # - name: Start mysql service + # run: sudo systemctl start mysql.service - name: Get composer cache directory id: composer-cache diff --git a/examples/phalcon-postgres.yml b/examples/phalcon-postgres.yml index 8937fd30..987a2c72 100644 --- a/examples/phalcon-postgres.yml +++ b/examples/phalcon-postgres.yml @@ -17,6 +17,8 @@ jobs: CODECEPTION_URL: 127.0.0.1 CODECEPTION_PORT: 8888 DB_CONNECTION: pgsql + + # Docs: https://docs.github.com/en/actions/using-containerized-services services: postgres: image: postgres:latest @@ -46,6 +48,11 @@ jobs: extensions: mbstring, dom, zip, phalcon4, pgsql coverage: xdebug + # Local PostgreSQL service in GitHub hosted environments is disabled by default. + # If you are using it instead of service containers, make sure you start it. + # - name: Start postgresql service + # run: sudo systemctl start postgresql.service + - name: Get composer cache directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" diff --git a/examples/symfony-mysql.yml b/examples/symfony-mysql.yml index 3427d8a8..5d176281 100644 --- a/examples/symfony-mysql.yml +++ b/examples/symfony-mysql.yml @@ -5,6 +5,8 @@ jobs: symfony: name: Symfony (PHP ${{ matrix.php-versions }}) runs-on: ubuntu-latest + + # Docs: https://docs.github.com/en/actions/using-containerized-services services: mysql: image: mysql:latest @@ -32,8 +34,10 @@ jobs: extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql coverage: xdebug - - name: Start mysql service - run: sudo systemctl start mysql + # Local MySQL service in GitHub hosted environments is disabled by default. + # If you are using it instead of service containers, make sure you start it. + # - name: Start mysql service + # run: sudo systemctl start mysql.service - name: Get composer cache directory id: composer-cache diff --git a/examples/symfony-postgres.yml b/examples/symfony-postgres.yml index e8f0c315..aec21a8d 100644 --- a/examples/symfony-postgres.yml +++ b/examples/symfony-postgres.yml @@ -5,6 +5,8 @@ jobs: symfony: name: Symfony (PHP ${{ matrix.php-versions }}) runs-on: ubuntu-latest + + # Docs: https://docs.github.com/en/actions/using-containerized-services services: postgres: image: postgres:latest @@ -32,6 +34,11 @@ jobs: extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, pgsql coverage: xdebug + # Local PostgreSQL service in GitHub hosted environments is disabled by default. + # If you are using it instead of service containers, make sure you start it. + # - name: Start postgresql service + # run: sudo systemctl start postgresql.service + - name: Get composer cache directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" diff --git a/examples/yii2-mysql.yml b/examples/yii2-mysql.yml index f4ea02ad..20a1584a 100644 --- a/examples/yii2-mysql.yml +++ b/examples/yii2-mysql.yml @@ -11,6 +11,8 @@ jobs: TEST_DB_USERNAME: root TEST_DB_PASSWORD: yii DB_CHARSET: utf8 + + # Docs: https://docs.github.com/en/actions/using-containerized-services services: mysql: image: mysql:latest @@ -42,8 +44,10 @@ jobs: extensions: mbstring, intl, gd, imagick, zip, dom, mysql coverage: xdebug - - name: Start mysql service - run: sudo systemctl start mysql + # Local MySQL service in GitHub hosted environments is disabled by default. + # If you are using it instead of service containers, make sure you start it. + # - name: Start mysql service + # run: sudo systemctl start mysql.service - name: Get composer cache directory id: composer-cache diff --git a/examples/yii2-postgres.yml b/examples/yii2-postgres.yml index 01ecd5cc..2348cbab 100644 --- a/examples/yii2-postgres.yml +++ b/examples/yii2-postgres.yml @@ -11,6 +11,8 @@ jobs: TEST_DB_USERNAME: postgres TEST_DB_PASSWORD: postgres DB_CHARSET: utf8 + + # Docs: https://docs.github.com/en/actions/using-containerized-services services: postgres: image: postgres:latest @@ -42,6 +44,11 @@ jobs: extensions: mbstring, intl, gd, imagick, zip, dom, pgsql coverage: xdebug + # Local PostgreSQL service in GitHub hosted environments is disabled by default. + # If you are using it instead of service containers, make sure you start it. + # - name: Start postgresql service + # run: sudo systemctl start postgresql.service + - name: Get composer cache directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)"