chore: migration symfony 6 #98
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- "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 |