Improve examples

This commit is contained in:
Shivam Mathur
2022-04-03 04:24:07 +05:30
parent 9e33c7b24e
commit 6ae3564af4
12 changed files with 80 additions and 13 deletions

View File

@ -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: