From e6b2e6545d75cc01064154f7e2a752ae4f67873d Mon Sep 17 00:00:00 2001 From: Maxime Horcholle Date: Wed, 14 Feb 2024 10:15:30 +0100 Subject: [PATCH] add symfony 7 --- .github/workflows/code_checks.yml | 167 ++++++++++++++++-------------- composer.json | 6 +- 2 files changed, 94 insertions(+), 79 deletions(-) diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml index 4486e71..09aa08d 100644 --- a/.github/workflows/code_checks.yml +++ b/.github/workflows/code_checks.yml @@ -6,124 +6,139 @@ on: branches: - master env: - LANG: "en_US.UTF-8" + LANG: "en_US.UTF-8" jobs: tests: runs-on: ubuntu-latest strategy: matrix: - php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] + php: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"] name: PHP ${{ matrix.php }} tests steps: - - uses: actions/checkout@v2 - - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: none # disable xdebug, pcov - - run: composer install --no-progress - - run: vendor/bin/phpunit + - uses: actions/checkout@v2 + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none # disable xdebug, pcov + - run: composer install --no-progress + - run: vendor/bin/phpunit test_lowest_dependencies: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: git fetch --depth=100000 origin + - uses: actions/checkout@v2 + - run: git fetch --depth=100000 origin # see https://github.com/shivammathur/setup-php - - uses: shivammathur/setup-php@v2 - with: - php-version: 7.2 - coverage: none + - uses: shivammathur/setup-php@v2 + with: + php-version: 7.2 + coverage: none - - run: composer update --no-progress --prefer-lowest - - run: vendor/bin/phpunit + - run: composer update --no-progress --prefer-lowest + - run: vendor/bin/phpunit test_symfony_34: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: git fetch --depth=100000 origin + - uses: actions/checkout@v2 + - run: git fetch --depth=100000 origin # see https://github.com/shivammathur/setup-php - - uses: shivammathur/setup-php@v2 - with: - php-version: 7.2 - coverage: none - - - run: composer install - - run: composer require --no-interaction --prefer-source symfony/process:3.4.* symfony/filesystem:3.4.* - - run: vendor/bin/phpunit + - uses: shivammathur/setup-php@v2 + with: + php-version: 7.2 + coverage: none + + - run: composer install + - run: composer require --no-interaction --prefer-source symfony/process:3.4.* symfony/filesystem:3.4.* + - run: vendor/bin/phpunit test_symfony_40: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: git fetch --depth=100000 origin + - uses: actions/checkout@v2 + - run: git fetch --depth=100000 origin # see https://github.com/shivammathur/setup-php - - uses: shivammathur/setup-php@v2 - with: - php-version: 7.3 - coverage: none - - - run: composer install - - run: composer require --no-interaction --prefer-source symfony/process:4.0.* symfony/filesystem:4.0.* - - run: vendor/bin/phpunit + - uses: shivammathur/setup-php@v2 + with: + php-version: 7.3 + coverage: none + + - run: composer install + - run: composer require --no-interaction --prefer-source symfony/process:4.0.* symfony/filesystem:4.0.* + - run: vendor/bin/phpunit test_symfony_44: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: git fetch --depth=100000 origin + - uses: actions/checkout@v2 + - run: git fetch --depth=100000 origin # see https://github.com/shivammathur/setup-php - - uses: shivammathur/setup-php@v2 - with: - php-version: 7.4 - coverage: none - - - run: composer install - - run: composer require --no-interaction --prefer-source symfony/process:4.4.* symfony/filesystem:4.4.* - - run: vendor/bin/phpunit + - uses: shivammathur/setup-php@v2 + with: + php-version: 7.4 + coverage: none + + - run: composer install + - run: composer require --no-interaction --prefer-source symfony/process:4.4.* symfony/filesystem:4.4.* + - run: vendor/bin/phpunit test_symfony_5: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: git fetch --depth=100000 origin + - uses: actions/checkout@v2 + - run: git fetch --depth=100000 origin # see https://github.com/shivammathur/setup-php - - uses: shivammathur/setup-php@v2 - with: - php-version: 7.4 - coverage: none - - - run: composer install - - run: composer require --no-interaction --prefer-source symfony/process:~5.0 symfony/filesystem:~5.0 - - run: vendor/bin/phpunit + - uses: shivammathur/setup-php@v2 + with: + php-version: 7.4 + coverage: none + + - run: composer install + - run: composer require --no-interaction --prefer-source symfony/process:~5.0 symfony/filesystem:~5.0 + - run: vendor/bin/phpunit test_symfony_60: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: git fetch --depth=100000 origin + - uses: actions/checkout@v2 + - run: git fetch --depth=100000 origin # see https://github.com/shivammathur/setup-php - - uses: shivammathur/setup-php@v2 - with: - php-version: 8.2 - coverage: none - - - run: composer install - - run: composer require --no-interaction --prefer-source symfony/process:~6.0 symfony/filesystem:~6.0 - - run: vendor/bin/phpunit + - uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + coverage: none + + - run: composer install + - run: composer require --no-interaction --prefer-source symfony/process:~6.0 symfony/filesystem:~6.0 + - run: vendor/bin/phpunit + test_symfony_70: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: git fetch --depth=100000 origin + + # see https://github.com/shivammathur/setup-php + - uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + coverage: none + + - run: composer install + - run: composer require --no-interaction --prefer-source symfony/process:~7.0 symfony/filesystem:~7.0 + - run: vendor/bin/phpunit ecs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2 # see https://github.com/shivammathur/setup-php - - uses: shivammathur/setup-php@v2 - with: - php-version: 8.0 - coverage: none - - - run: composer install --no-progress - - run: composer require symplify/easy-coding-standard --dev - - run: vendor/bin/ecs check --ansi \ No newline at end of file + - uses: shivammathur/setup-php@v2 + with: + php-version: 8.0 + coverage: none + + - run: composer install --no-progress + - run: composer require symplify/easy-coding-standard --dev + - run: vendor/bin/ecs check --ansi diff --git a/composer.json b/composer.json index 732c034..e184397 100644 --- a/composer.json +++ b/composer.json @@ -17,9 +17,9 @@ ], "require": { "php": ">=7.2", - "symfony/process": "~3.4|~4.0|~5.0|~6.0", - "symfony/filesystem": "~3.4|~4.0|~5.0|~6.0" - }, + "symfony/process": "~3.4|~4.0|~5.0|~6.0|~7.0", + "symfony/filesystem": "~3.4|~4.0|~5.0|~6.0|~7.0" + }, "require-dev": { "phpunit/phpunit": "~8.5", "phpspec/prophecy": "^1.15"