Skip to content

migration symfony 5 and 6 PHP 8.1 #79

migration symfony 5 and 6 PHP 8.1

migration symfony 5 and 6 PHP 8.1 #79

Workflow file for this run

name: "unit tests"
on: [ "pull_request", "push" ]
jobs:
unit-tests:
name: "unit tests"
runs-on: "ubuntu-latest"
strategy:
matrix:
symfony-version:
- "5.4.*"
- "6.3.*"
php-version:
- "7.2"
- "8.1.*"
- "8.2.*"
dependencies:
- "lowest"
- "highest"
steps:
- name: "checkout"
uses: "actions/checkout@v2"
- name: "installing PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
tools: composer:v2, cs2pr
extensions: intl, bcmath, curl, openssl, mbstring
coverage: pcov
ini-values: memory_limit=-1
- name: "caching dependencies"
uses: "actions/cache@v2"
with:
path: |
~/.composer/cache
vendor
key: "php-${{ matrix.php-version }}"
restore-keys: "php-${{ matrix.php-version }}"
- name: "configuring symfony dependencies"
run: |
composer require --no-update symfony/dependency-injection=${{ matrix.symfony-version }} symfony/http-foundation=${{ matrix.symfony-version }} symfony/http-kernel=${{ matrix.symfony-version }} symfony/security-core=${{ matrix.symfony-version }} symfony/config=${{ matrix.symfony-version }}
- name: "install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: composer update --prefer-lowest --no-interaction --no-progress --prefer-dist
- name: "install highest dependencies"
if: ${{ matrix.dependencies == 'highest' }}
run: composer update --no-interaction --no-progress --prefer-dist
- name: "running unit tests"
run: vendor/bin/simple-phpunit