Skip to content

Update php requirements #6

Update php requirements

Update php requirements #6

Workflow file for this run

name: Tests
on:
push:
branches:
- master
- change/jiraProjectKey
pull_request:
branches:
- master
jobs:
mysql-tests:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php: '7.2'
- php: '7.3'
- php: '7.4'
- php: '8.1'
- php: '8.2'
name: PHP ${{ matrix.php }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, intl, gd, exif, iconv, mysqli, pdo, pdo_mysql, ldap
coverage: none
- name: Get Composer Cache Directory
id: composer-cache
env:
PHP_VERSION: ${{ matrix.php }}
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }}
- name: Setup composer dependencies
env:
PHP_VERSION: ${{ matrix.php }}
run: |
php composer.phar install
- name: Run unit tests
run: |
vendor/bin/phpunit --verbose --stop-on-error