Skip to content

Removed support of PHP 5.4.x and PHP 5.5.x versions #29

Removed support of PHP 5.4.x and PHP 5.5.x versions

Removed support of PHP 5.4.x and PHP 5.5.x versions #29

Workflow file for this run

name: CI
on:
push:
pull_request:
# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
tests:
name: Tests (PHP ${{ matrix.php }})
runs-on: ubuntu-20.04
strategy:
matrix:
php: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
fail-fast: false
env:
REPO_URL: http://localhost:8002/
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "none"
php-version: "${{ matrix.php }}"
tools: composer
# PHP 7.1 development web server segfaults if timezone not set.
ini-values: date.timezone=Europe/Paris, error_reporting=-1, display_errors=On
- name: Configure for PHP >= 7.1
if: "${{ matrix.php >= '7.1' }}"
run: |
composer require --no-update --dev symfony/error-handler "^4.4 || ^5.0"
- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "highest"
- name: Setup test web server
run: |
php -S localhost:8002 -t $(pwd) > /dev/null 2> /tmp/webserver_output.txt &
- name: Wait for browser & PHP to start
run: |
while ! nc -z localhost 8002 </dev/null; do echo Waiting for PHP server to start...; sleep 1; done
- name: Run tests
run: |
vendor/bin/phpunit -v