Skip to content

chore: drop PHP 5.x, PHPUnit 5.x and PHPUnit polyfill (#19) #17

chore: drop PHP 5.x, PHPUnit 5.x and PHPUnit polyfill (#19)

chore: drop PHP 5.x, PHPUnit 5.x and PHPUnit polyfill (#19) #17

Workflow file for this run

name: CI
on:
- pull_request
- push
jobs:
analyse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: none
- run: composer update --no-progress
- run: composer update --no-progress --working-dir=dev-tools
- run: composer info --direct --working-dir=dev-tools | sort
- run: composer validate --strict
- run: composer normalize --working-dir=dev-tools ../composer.json --dry-run
- run: dev-tools/vendor/bin/composer-require-checker check composer.json --config-file=.composer-require-checker.json
- run: dev-tools/vendor/bin/phpmd src,tests text dev-tools/phpmd.xml
- run: dev-tools/vendor/bin/php-cs-fixer fix --diff --dry-run -v
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php-version: '7.0'
composer-flags: '--prefer-stable --prefer-lowest'
- 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.2'
- php-version: '8.3'
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- run: composer update --no-progress ${{ matrix.composer-flags }}
- run: vendor/bin/phpunit