Skip to content

Commit

Permalink
Improve examples
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Apr 2, 2022
1 parent 9e33c7b commit 6ae3564
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 13 deletions.
8 changes: 6 additions & 2 deletions examples/cakephp-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions examples/cakephp-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)"
Expand Down Expand Up @@ -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:
Expand Down
10 changes: 7 additions & 3 deletions examples/laravel-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions examples/laravel-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)"
Expand Down
8 changes: 6 additions & 2 deletions examples/lumen-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions examples/lumen-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)"
Expand Down
8 changes: 6 additions & 2 deletions examples/phalcon-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions examples/phalcon-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)"
Expand Down
8 changes: 6 additions & 2 deletions examples/symfony-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions examples/symfony-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)"
Expand Down
8 changes: 6 additions & 2 deletions examples/yii2-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions examples/yii2-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)"
Expand Down

0 comments on commit 6ae3564

Please sign in to comment.