Skip to content

Support Symfony 7.2 #203

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

Merged
merged 1 commit into from
Dec 8, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 18 additions & 32 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: CI

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
php: [8.1, 8.2, 8.3, 8.4]
symfony: ["5.4.*", "6.4.*", "7.1.*"]
symfony: ["5.4.*", "6.4.*", "7.2.*"]
exclude:
- php: 8.1
symfony: "7.1.*"
symfony: "7.2.*"

steps:
- name: Checkout code
Expand All @@ -26,40 +24,28 @@ jobs:
extensions: ctype, iconv, intl, json, mbstring, pdo, pdo_sqlite
coverage: none

- name: Checkout Symfony 5.4 Sample
if: "matrix.symfony == '5.4.*'"
uses: actions/checkout@v4
with:
repository: Codeception/symfony-module-tests
path: framework-tests
ref: "5.4"

- name: Checkout Symfony 6.4 Sample
if: "matrix.symfony == '6.4.*'"
uses: actions/checkout@v4
with:
repository: Codeception/symfony-module-tests
path: framework-tests
ref: "6.4"
- name: Set Symfony version reference
run: echo "SF_REF=${MATRIX_SYMFONY%.*}" >> $GITHUB_ENV
env:
MATRIX_SYMFONY: ${{ matrix.symfony }}

- name: Checkout Symfony 7.1 Sample
if: "matrix.symfony == '7.1.*'"
- name: Checkout Symfony ${{ env.SF_REF }} Sample
uses: actions/checkout@v4
with:
repository: Codeception/symfony-module-tests
path: framework-tests
ref: "7.1"
ref: ${{ env.SF_REF }}

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache composer dependencies
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json', 'composer.lock') }}
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer-

- name: Install PHPUnit 10
run: composer require --dev --no-update "phpunit/phpunit=^10.0"
Expand All @@ -78,27 +64,27 @@ jobs:
composer require codeception/module-doctrine="3.*" --no-update
composer update --prefer-dist --no-progress --no-dev

- name: Validate composer.json and composer.lock
run: composer validate
- name: Validate Composer files
run: composer validate --strict
working-directory: framework-tests

- name: Install PHPUnit 10 in framework-tests
- name: Install PHPUnit in framework-tests
run: composer require --dev --no-update "phpunit/phpunit=^10.0"
working-directory: framework-tests

- name: Install Symfony Sample
- name: Prepare Symfony sample
run: |
composer remove codeception/codeception codeception/module-asserts codeception/module-doctrine codeception/lib-innerbrowser codeception/module-symfony --dev --no-update
composer update --no-progress
working-directory: framework-tests

- name: Prepare the test environment
- name: Setup Database
run: |
php bin/console doctrine:schema:update --force
php bin/console doctrine:fixtures:load --quiet
working-directory: framework-tests

- name: Run test suite
- name: Run tests
run: |
php vendor/bin/codecept build -c framework-tests
php vendor/bin/codecept run Functional -c framework-tests
54 changes: 27 additions & 27 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,33 +28,33 @@
"codeception/module-asserts": "^3.0",
"codeception/module-doctrine": "^3.1",
"doctrine/orm": "^2.10",
"symfony/browser-kit": "^5.4 | ^6.4 | ^7.0",
"symfony/cache": "^5.4 | ^6.4 | ^7.0",
"symfony/config": "^5.4 | ^6.4 | ^7.0",
"symfony/dependency-injection": "^5.4 | ^6.4 | ^7.0",
"symfony/dom-crawler": "^5.4 | ^6.4 | ^7.0",
"symfony/dotenv": "^5.4 | ^6.4 | ^7.0",
"symfony/error-handler": "^5.4 | ^6.4 | ^7.0",
"symfony/filesystem": "^5.4 | ^6.4 | ^7.0",
"symfony/form": "^5.4 | ^6.4 | ^7.0",
"symfony/framework-bundle": "^5.4 | ^6.4 | ^7.0",
"symfony/http-client": "^5.4 | ^6.4 | ^7.0",
"symfony/http-foundation": "^5.4 | ^6.4 | ^7.0",
"symfony/http-kernel": "^5.4 | ^6.4 | ^7.0",
"symfony/mailer": "^5.4 | ^6.4 | ^7.0",
"symfony/mime": "^5.4 | ^6.4 | ^7.0",
"symfony/notifier": "^5.4 | ^6.4 | ^7.0",
"symfony/options-resolver": "^5.4 | ^6.4 | ^7.0",
"symfony/property-access": "^5.4 | ^6.4 | ^7.0",
"symfony/property-info": "^5.4 | ^6.4 | ^7.0",
"symfony/routing": "^5.4 | ^6.4 | ^7.0",
"symfony/security-bundle": "^5.4 | ^6.4 | ^7.0",
"symfony/security-core": "^5.4 | ^6.4 | ^7.0",
"symfony/security-csrf": "^5.4 | ^6.4 | ^7.0",
"symfony/security-http": "^5.4 | ^6.4 | ^7.0",
"symfony/twig-bundle": "^5.4 | ^6.4 | ^7.0",
"symfony/validator": "^5.4 | ^6.4 | ^7.0",
"symfony/var-exporter": "^5.4 | ^6.4 | ^7.0",
"symfony/browser-kit": "^5.4 | ^6.4 | ^7.2",
"symfony/cache": "^5.4 | ^6.4 | ^7.2",
"symfony/config": "^5.4 | ^6.4 | ^7.2",
"symfony/dependency-injection": "^5.4 | ^6.4 | ^7.2",
"symfony/dom-crawler": "^5.4 | ^6.4 | ^7.2",
"symfony/dotenv": "^5.4 | ^6.4 | ^7.2",
"symfony/error-handler": "^5.4 | ^6.4 | ^7.2",
"symfony/filesystem": "^5.4 | ^6.4 | ^7.2",
"symfony/form": "^5.4 | ^6.4 | ^7.2",
"symfony/framework-bundle": "^5.4 | ^6.4 | ^7.2",
"symfony/http-client": "^5.4 | ^6.4 | ^7.2",
"symfony/http-foundation": "^5.4 | ^6.4 | ^7.2",
"symfony/http-kernel": "^5.4 | ^6.4 | ^7.2",
"symfony/mailer": "^5.4 | ^6.4 | ^7.2",
"symfony/mime": "^5.4 | ^6.4 | ^7.2",
"symfony/notifier": "^5.4 | ^6.4 | ^7.2",
"symfony/options-resolver": "^5.4 | ^6.4 | ^7.2",
"symfony/property-access": "^5.4 | ^6.4 | ^7.2",
"symfony/property-info": "^5.4 | ^6.4 | ^7.2",
"symfony/routing": "^5.4 | ^6.4 | ^7.2",
"symfony/security-bundle": "^5.4 | ^6.4 | ^7.2",
"symfony/security-core": "^5.4 | ^6.4 | ^7.2",
"symfony/security-csrf": "^5.4 | ^6.4 | ^7.2",
"symfony/security-http": "^5.4 | ^6.4 | ^7.2",
"symfony/twig-bundle": "^5.4 | ^6.4 | ^7.2",
"symfony/validator": "^5.4 | ^6.4 | ^7.2",
"symfony/var-exporter": "^5.4 | ^6.4 | ^7.2",
"vlucas/phpdotenv": "^4.2 | ^5.4"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A Codeception module for Symfony framework.

## Requirements

* `Symfony` `5.4.x`, `6.4.x`, `7.1.x` or higher, as per the [Symfony supported versions](https://symfony.com/releases).
* `Symfony` `5.4.x`, `6.4.x`, `7.2.x` or higher, as per the [Symfony supported versions](https://symfony.com/releases).
* `PHP 8.1` or higher.

## Installation
Expand Down
Loading