PHP 5.5+ and replaced doctrine/cache with symfony/cache

This commit is contained in:
Pascal Baljet 2021-12-20 10:46:53 +01:00
commit 7eace8852a
12 changed files with 142 additions and 127 deletions

View file

@ -1,80 +1,66 @@
name: Test
on:
pull_request: ~
push:
branches:
- 'master'
schedule:
- cron: "0 0 * * *"
pull_request: ~
push:
branches:
- "master"
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: "PHP ${{ matrix.php-version }} ${{ matrix.dependency-versions }} ${{ matrix.composer-stability }}"
runs-on: ubuntu-latest
test:
name: "PHP ${{ matrix.php-version }} ${{ matrix.dependency-versions }} ${{ matrix.composer-stability }}"
runs-on: ubuntu-latest
env:
PHPUNIT_VERSION: ${{ matrix.phpunit-version }}
env:
PHPUNIT_VERSION: ${{ matrix.phpunit-version }}
strategy:
fail-fast: false
matrix:
include:
- php-version: '5.3'
phpunit-version: 4
dependency-versions: 'lowest'
- php-version: '5.4'
phpunit-version: 4
- php-version: '5.5'
phpunit-version: 4
- php-version: '5.6'
- php-version: '7.0'
- php-version: '7.1'
- php-version: '7.2'
- php-version: '7.3'
- php-version: '7.4'
- php-version: '8.0'
- php-version: '8.1'
- php-version: '8.1'
dependency-versions: 'highest'
composer-stability: 'dev'
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
php-version: [8.1, 8.0, 7.4, 7.3, 7.2, 7.1, 7.0, 5.6, 5.5]
dependency-versions: [prefer-lowest, prefer-stable]
include:
- php-version: 5.5
phpunit-version: 4
steps:
- name: Checkout project
uses: actions/checkout@v2
steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Install and configure PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: none
- name: Install and configure PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: none
- name: Install phpunit
if: ${{ matrix.phpunit-version }}
run: |
composer remove symfony/phpunit-bridge --dev
wget -O phpunit "https://phar.phpunit.de/phpunit-${{ matrix.phpunit-version }}.phar"
chmod +x phpunit
composer require "roave/security-advisories" dev-master --no-update
- name: Install phpunit
if: ${{ matrix.phpunit-version }}
run: |
composer remove symfony/phpunit-bridge --dev
wget -O phpunit "https://phar.phpunit.de/phpunit-${{ matrix.phpunit-version }}.phar"
chmod +x phpunit
composer require "roave/security-advisories" dev-master --no-update
- name: Set composer stability
if: ${{ matrix.composer-stability }}
run: composer config minimum-stability ${{ matrix.composer-stability }}
- name: Set composer stability
if: ${{ matrix.composer-stability }}
run: composer config minimum-stability ${{ matrix.composer-stability }}
- name: Install composer dependencies
uses: ramsey/composer-install@v1
with:
dependency-versions: ${{ matrix.dependency-versions }}
- name: Install composer dependencies
uses: ramsey/composer-install@v1
with:
dependency-versions: ${{ matrix.dependency-versions }}
- name: Install ffmpeg
uses: FedericoCarboni/setup-ffmpeg@v1
- name: Install ffmpeg
uses: FedericoCarboni/setup-ffmpeg@v1
- name: Run tests
if: ${{ matrix.phpunit-version }}
run: |
if [ "$PHPUNIT_VERSION" ]; then
./phpunit --verbose
else
./vendor/bin/simple-phpunit --verbose
fi;
- name: Run tests
run: |
if [ "$PHPUNIT_VERSION" ]; then
./phpunit --verbose
else
./vendor/bin/simple-phpunit --verbose
fi;