Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: early compatibility checks with Symfony 7 #7431

Merged
merged 3 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/composite-actions/setup-php-with-composer-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,25 @@ runs:
shell: bash
run: composer config extra.symfony.require ${{ inputs.composer-flex-with-symfony-version }}

- name: Configure Symfony ^7
if: inputs.composer-flex-with-symfony-version == '^7'
shell: bash
run: |
composer config minimum-stability beta
sed -i.bak -E 's|"(symfony/.*): "(\^[56].*)"|"\1: "^7@beta"|' composer.json
composer remove php-coveralls/php-coveralls facile-it/paraunit keradus/cli-executor --dev

- name: Install Composer deps
uses: ./.github/composite-actions/install-composer-deps
with:
flags: ${{ inputs.composer-flags }}

- name: Mock ParaUnit under Symfony ^7
if: inputs.composer-flex-with-symfony-version == '^7'
shell: bash
run: |
echo '#!/usr/bin/env bash' > vendor/bin/paraunit
echo 'set -eu' >> vendor/bin/paraunit
echo 'shift' >> vendor/bin/paraunit
echo './vendor/bin/phpunit "${@}"' >> vendor/bin/paraunit
chmod +x vendor/bin/paraunit
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ jobs:
job-description: 'Fixer'
run-fixer: 'yes'

- operating-system: 'ubuntu-20.04'
php-version: '8.2'
job-description: 'tests'
run-tests: 'yes'

- operating-system: 'ubuntu-20.04'
php-version: '8.2'
job-description: 'Fixer with migration rules'
Expand All @@ -70,14 +75,21 @@ jobs:

- operating-system: 'ubuntu-20.04'
php-version: '8.2'
job-description: 'tests'
job-description: 'tests with migration rules'
run-tests: 'yes'
run-migration-rules: 'yes' # should be checked on the highest supported PHP version

- operating-system: 'ubuntu-20.04'
php-version: '8.2'
job-description: 'tests with migration rules'
job-description: 'Fixer with Symfony ^7'
run-fixer: 'yes'
execute-flex-with-symfony-version: '^7' # explicit check for Symfony 7.x compatibility

- operating-system: 'ubuntu-20.04'
php-version: '8.2'
job-description: 'tests with Symfony ^7'
run-tests: 'yes'
run-migration-rules: 'yes' # should be checked on the highest supported PHP version
execute-flex-with-symfony-version: '^7' # explicit check for Symfony 7.x compatibility

- operating-system: 'ubuntu-20.04'
php-version: '8.2'
Expand Down