Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memcache setup #3

Merged
merged 10 commits into from
May 13, 2023
Merged
18 changes: 17 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,33 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Determine memcache version to install
id: memcacheVersion
run: |
if [ "${{ matrix.php }}" = "8.2" ]; then
echo "memcache_version=-8.2" >> "$GITHUB_OUTPUT"
else
echo "memcache_version=" >> "$GITHUB_OUTPUT"
fi

- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: display_errors=off, log_errors=on
tools: cs2pr
extensions: :xdebug, ctype, dom, gd, iconv, ldap, mbstring, reflection, session, simplexml, spl, xml, zlib, memcache-8.2, memcached, pdo_sqlite, bcmath
extensions: :xdebug, ctype, dom, gd, iconv, ldap, mbstring, reflection, session, simplexml, spl, xml, zlib, memcache${{ steps.memcacheVersion.outputs.memcache_version }}, pdo_sqlite, bcmath
env:
# https://github.com/shivammathur/setup-php/issues/407#issuecomment-773675741
fail-fast: true

- name: Remove duplicate ini file for memcache (PHP 8.2)
run: |
if [ "${{ matrix.php }}" = "8.2" ] && [ -f /etc/php/8.2/mods-available/memcache.ini ]; then
sudo rm /etc/php/8.2/mods-available/memcache.ini
fi
php -i | grep "memcache support" -A 5

# https://github.com/zf1s/zf1/pull/6#issuecomment-495397170
- name: Validate composer.json for all packages
run: |
Expand Down