mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-25 05:01:07 +07:00
Improve examples
This commit is contained in:
parent
9e33c7b24e
commit
6ae3564af4
@ -8,6 +8,8 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
php-versions: ['7.4', '8.0', '8.1']
|
php-versions: ['7.4', '8.0', '8.1']
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Docs: https://docs.github.com/en/actions/using-containerized-services
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
@ -38,8 +40,10 @@ jobs:
|
|||||||
extensions: mbstring, intl, redis, pdo_mysql
|
extensions: mbstring, intl, redis, pdo_mysql
|
||||||
coverage: pcov
|
coverage: pcov
|
||||||
|
|
||||||
- name: Start mysql service
|
# Local MySQL service in GitHub hosted environments is disabled by default.
|
||||||
run: sudo systemctl start mysql
|
# 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
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
|
@ -8,6 +8,8 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
php-versions: ['7.4', '8.0', '8.1']
|
php-versions: ['7.4', '8.0', '8.1']
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Docs: https://docs.github.com/en/actions/using-containerized-services
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
@ -38,6 +40,11 @@ jobs:
|
|||||||
extensions: mbstring, intl, redis, pdo_pgsql
|
extensions: mbstring, intl, redis, pdo_pgsql
|
||||||
coverage: pcov
|
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
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||||
@ -103,6 +110,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# Docs: https://github.com/shivammathur/setup-php
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
|
@ -13,6 +13,8 @@ jobs:
|
|||||||
CACHE_DRIVER: redis
|
CACHE_DRIVER: redis
|
||||||
QUEUE_CONNECTION: redis
|
QUEUE_CONNECTION: redis
|
||||||
SESSION_DRIVER: redis
|
SESSION_DRIVER: redis
|
||||||
|
|
||||||
|
# Docs: https://docs.github.com/en/actions/using-containerized-services
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
@ -45,8 +47,10 @@ jobs:
|
|||||||
extensions: mbstring, dom, fileinfo, mysql
|
extensions: mbstring, dom, fileinfo, mysql
|
||||||
coverage: xdebug
|
coverage: xdebug
|
||||||
|
|
||||||
- name: Start mysql service
|
# Local MySQL service in GitHub hosted environments is disabled by default.
|
||||||
run: sudo systemctl start mysql
|
# 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
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
|
@ -15,6 +15,8 @@ jobs:
|
|||||||
DB_PASSWORD: postgres
|
DB_PASSWORD: postgres
|
||||||
DB_USERNAME: postgres
|
DB_USERNAME: postgres
|
||||||
DB_DATABASE: postgres
|
DB_DATABASE: postgres
|
||||||
|
|
||||||
|
# Docs: https://docs.github.com/en/actions/using-containerized-services
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
@ -47,6 +49,11 @@ jobs:
|
|||||||
extensions: mbstring, dom, fileinfo, pgsql
|
extensions: mbstring, dom, fileinfo, pgsql
|
||||||
coverage: xdebug
|
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
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||||
|
@ -13,6 +13,8 @@ jobs:
|
|||||||
CACHE_DRIVER: redis
|
CACHE_DRIVER: redis
|
||||||
QUEUE_CONNECTION: redis
|
QUEUE_CONNECTION: redis
|
||||||
SESSION_DRIVER: redis
|
SESSION_DRIVER: redis
|
||||||
|
|
||||||
|
# Docs: https://docs.github.com/en/actions/using-containerized-services
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
@ -45,8 +47,10 @@ jobs:
|
|||||||
extensions: mbstring, dom, fileinfo, mysql
|
extensions: mbstring, dom, fileinfo, mysql
|
||||||
coverage: xdebug
|
coverage: xdebug
|
||||||
|
|
||||||
- name: Start mysql service
|
# Local MySQL service in GitHub hosted environments is disabled by default.
|
||||||
run: sudo systemctl start mysql
|
# 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
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
|
@ -15,6 +15,8 @@ jobs:
|
|||||||
DB_PASSWORD: postgres
|
DB_PASSWORD: postgres
|
||||||
DB_USERNAME: postgres
|
DB_USERNAME: postgres
|
||||||
DB_DATABASE: postgres
|
DB_DATABASE: postgres
|
||||||
|
|
||||||
|
# Docs: https://docs.github.com/en/actions/using-containerized-services
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
@ -47,6 +49,11 @@ jobs:
|
|||||||
extensions: mbstring, dom, fileinfo, pgsql
|
extensions: mbstring, dom, fileinfo, pgsql
|
||||||
coverage: xdebug
|
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
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||||
|
@ -16,6 +16,8 @@ jobs:
|
|||||||
DB_PASSWORD: password
|
DB_PASSWORD: password
|
||||||
CODECEPTION_URL: 127.0.0.1
|
CODECEPTION_URL: 127.0.0.1
|
||||||
CODECEPTION_PORT: 8888
|
CODECEPTION_PORT: 8888
|
||||||
|
|
||||||
|
# Docs: https://docs.github.com/en/actions/using-containerized-services
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
@ -45,8 +47,10 @@ jobs:
|
|||||||
extensions: mbstring, dom, zip, phalcon4, mysql
|
extensions: mbstring, dom, zip, phalcon4, mysql
|
||||||
coverage: xdebug
|
coverage: xdebug
|
||||||
|
|
||||||
- name: Start mysql service
|
# Local MySQL service in GitHub hosted environments is disabled by default.
|
||||||
run: sudo systemctl start mysql
|
# 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
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
|
@ -17,6 +17,8 @@ jobs:
|
|||||||
CODECEPTION_URL: 127.0.0.1
|
CODECEPTION_URL: 127.0.0.1
|
||||||
CODECEPTION_PORT: 8888
|
CODECEPTION_PORT: 8888
|
||||||
DB_CONNECTION: pgsql
|
DB_CONNECTION: pgsql
|
||||||
|
|
||||||
|
# Docs: https://docs.github.com/en/actions/using-containerized-services
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
@ -46,6 +48,11 @@ jobs:
|
|||||||
extensions: mbstring, dom, zip, phalcon4, pgsql
|
extensions: mbstring, dom, zip, phalcon4, pgsql
|
||||||
coverage: xdebug
|
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
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||||
|
@ -5,6 +5,8 @@ jobs:
|
|||||||
symfony:
|
symfony:
|
||||||
name: Symfony (PHP ${{ matrix.php-versions }})
|
name: Symfony (PHP ${{ matrix.php-versions }})
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Docs: https://docs.github.com/en/actions/using-containerized-services
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
@ -32,8 +34,10 @@ jobs:
|
|||||||
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql
|
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql
|
||||||
coverage: xdebug
|
coverage: xdebug
|
||||||
|
|
||||||
- name: Start mysql service
|
# Local MySQL service in GitHub hosted environments is disabled by default.
|
||||||
run: sudo systemctl start mysql
|
# 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
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
|
@ -5,6 +5,8 @@ jobs:
|
|||||||
symfony:
|
symfony:
|
||||||
name: Symfony (PHP ${{ matrix.php-versions }})
|
name: Symfony (PHP ${{ matrix.php-versions }})
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Docs: https://docs.github.com/en/actions/using-containerized-services
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
@ -32,6 +34,11 @@ jobs:
|
|||||||
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, pgsql
|
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, pgsql
|
||||||
coverage: xdebug
|
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
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||||
|
@ -11,6 +11,8 @@ jobs:
|
|||||||
TEST_DB_USERNAME: root
|
TEST_DB_USERNAME: root
|
||||||
TEST_DB_PASSWORD: yii
|
TEST_DB_PASSWORD: yii
|
||||||
DB_CHARSET: utf8
|
DB_CHARSET: utf8
|
||||||
|
|
||||||
|
# Docs: https://docs.github.com/en/actions/using-containerized-services
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
@ -42,8 +44,10 @@ jobs:
|
|||||||
extensions: mbstring, intl, gd, imagick, zip, dom, mysql
|
extensions: mbstring, intl, gd, imagick, zip, dom, mysql
|
||||||
coverage: xdebug
|
coverage: xdebug
|
||||||
|
|
||||||
- name: Start mysql service
|
# Local MySQL service in GitHub hosted environments is disabled by default.
|
||||||
run: sudo systemctl start mysql
|
# 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
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
|
@ -11,6 +11,8 @@ jobs:
|
|||||||
TEST_DB_USERNAME: postgres
|
TEST_DB_USERNAME: postgres
|
||||||
TEST_DB_PASSWORD: postgres
|
TEST_DB_PASSWORD: postgres
|
||||||
DB_CHARSET: utf8
|
DB_CHARSET: utf8
|
||||||
|
|
||||||
|
# Docs: https://docs.github.com/en/actions/using-containerized-services
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
@ -42,6 +44,11 @@ jobs:
|
|||||||
extensions: mbstring, intl, gd, imagick, zip, dom, pgsql
|
extensions: mbstring, intl, gd, imagick, zip, dom, pgsql
|
||||||
coverage: xdebug
|
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
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||||
|
Loading…
Reference in New Issue
Block a user