Skip to content

Commit 5e042f1

Browse files
authored
Support Symfony 7.2 (#203)
1 parent cad3c7a commit 5e042f1

File tree

3 files changed

+46
-60
lines changed

3 files changed

+46
-60
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
name: CI
2-
32
on: [push, pull_request]
43

54
jobs:
65
tests:
76
runs-on: ubuntu-latest
8-
97
strategy:
108
matrix:
119
php: [8.1, 8.2, 8.3, 8.4]
12-
symfony: ["5.4.*", "6.4.*", "7.1.*"]
10+
symfony: ["5.4.*", "6.4.*", "7.2.*"]
1311
exclude:
1412
- php: 8.1
15-
symfony: "7.1.*"
13+
symfony: "7.2.*"
1614

1715
steps:
1816
- name: Checkout code
@@ -26,40 +24,28 @@ jobs:
2624
extensions: ctype, iconv, intl, json, mbstring, pdo, pdo_sqlite
2725
coverage: none
2826

29-
- name: Checkout Symfony 5.4 Sample
30-
if: "matrix.symfony == '5.4.*'"
31-
uses: actions/checkout@v4
32-
with:
33-
repository: Codeception/symfony-module-tests
34-
path: framework-tests
35-
ref: "5.4"
36-
37-
- name: Checkout Symfony 6.4 Sample
38-
if: "matrix.symfony == '6.4.*'"
39-
uses: actions/checkout@v4
40-
with:
41-
repository: Codeception/symfony-module-tests
42-
path: framework-tests
43-
ref: "6.4"
27+
- name: Set Symfony version reference
28+
run: echo "SF_REF=${MATRIX_SYMFONY%.*}" >> $GITHUB_ENV
29+
env:
30+
MATRIX_SYMFONY: ${{ matrix.symfony }}
4431

45-
- name: Checkout Symfony 7.1 Sample
46-
if: "matrix.symfony == '7.1.*'"
32+
- name: Checkout Symfony ${{ env.SF_REF }} Sample
4733
uses: actions/checkout@v4
4834
with:
4935
repository: Codeception/symfony-module-tests
5036
path: framework-tests
51-
ref: "7.1"
37+
ref: ${{ env.SF_REF }}
5238

5339
- name: Get composer cache directory
5440
id: composer-cache
55-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
41+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
5642

57-
- name: Cache composer dependencies
43+
- name: Cache Composer dependencies
5844
uses: actions/cache@v3
5945
with:
6046
path: ${{ steps.composer-cache.outputs.dir }}
61-
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
62-
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
47+
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json', 'composer.lock') }}
48+
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer-
6349

6450
- name: Install PHPUnit 10
6551
run: composer require --dev --no-update "phpunit/phpunit=^10.0"
@@ -78,27 +64,27 @@ jobs:
7864
composer require codeception/module-doctrine="3.*" --no-update
7965
composer update --prefer-dist --no-progress --no-dev
8066
81-
- name: Validate composer.json and composer.lock
82-
run: composer validate
67+
- name: Validate Composer files
68+
run: composer validate --strict
8369
working-directory: framework-tests
8470

85-
- name: Install PHPUnit 10 in framework-tests
71+
- name: Install PHPUnit in framework-tests
8672
run: composer require --dev --no-update "phpunit/phpunit=^10.0"
8773
working-directory: framework-tests
8874

89-
- name: Install Symfony Sample
75+
- name: Prepare Symfony sample
9076
run: |
9177
composer remove codeception/codeception codeception/module-asserts codeception/module-doctrine codeception/lib-innerbrowser codeception/module-symfony --dev --no-update
9278
composer update --no-progress
9379
working-directory: framework-tests
9480

95-
- name: Prepare the test environment
81+
- name: Setup Database
9682
run: |
9783
php bin/console doctrine:schema:update --force
9884
php bin/console doctrine:fixtures:load --quiet
9985
working-directory: framework-tests
10086

101-
- name: Run test suite
87+
- name: Run tests
10288
run: |
10389
php vendor/bin/codecept build -c framework-tests
10490
php vendor/bin/codecept run Functional -c framework-tests

composer.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,33 @@
2828
"codeception/module-asserts": "^3.0",
2929
"codeception/module-doctrine": "^3.1",
3030
"doctrine/orm": "^2.10",
31-
"symfony/browser-kit": "^5.4 | ^6.4 | ^7.0",
32-
"symfony/cache": "^5.4 | ^6.4 | ^7.0",
33-
"symfony/config": "^5.4 | ^6.4 | ^7.0",
34-
"symfony/dependency-injection": "^5.4 | ^6.4 | ^7.0",
35-
"symfony/dom-crawler": "^5.4 | ^6.4 | ^7.0",
36-
"symfony/dotenv": "^5.4 | ^6.4 | ^7.0",
37-
"symfony/error-handler": "^5.4 | ^6.4 | ^7.0",
38-
"symfony/filesystem": "^5.4 | ^6.4 | ^7.0",
39-
"symfony/form": "^5.4 | ^6.4 | ^7.0",
40-
"symfony/framework-bundle": "^5.4 | ^6.4 | ^7.0",
41-
"symfony/http-client": "^5.4 | ^6.4 | ^7.0",
42-
"symfony/http-foundation": "^5.4 | ^6.4 | ^7.0",
43-
"symfony/http-kernel": "^5.4 | ^6.4 | ^7.0",
44-
"symfony/mailer": "^5.4 | ^6.4 | ^7.0",
45-
"symfony/mime": "^5.4 | ^6.4 | ^7.0",
46-
"symfony/notifier": "^5.4 | ^6.4 | ^7.0",
47-
"symfony/options-resolver": "^5.4 | ^6.4 | ^7.0",
48-
"symfony/property-access": "^5.4 | ^6.4 | ^7.0",
49-
"symfony/property-info": "^5.4 | ^6.4 | ^7.0",
50-
"symfony/routing": "^5.4 | ^6.4 | ^7.0",
51-
"symfony/security-bundle": "^5.4 | ^6.4 | ^7.0",
52-
"symfony/security-core": "^5.4 | ^6.4 | ^7.0",
53-
"symfony/security-csrf": "^5.4 | ^6.4 | ^7.0",
54-
"symfony/security-http": "^5.4 | ^6.4 | ^7.0",
55-
"symfony/twig-bundle": "^5.4 | ^6.4 | ^7.0",
56-
"symfony/validator": "^5.4 | ^6.4 | ^7.0",
57-
"symfony/var-exporter": "^5.4 | ^6.4 | ^7.0",
31+
"symfony/browser-kit": "^5.4 | ^6.4 | ^7.2",
32+
"symfony/cache": "^5.4 | ^6.4 | ^7.2",
33+
"symfony/config": "^5.4 | ^6.4 | ^7.2",
34+
"symfony/dependency-injection": "^5.4 | ^6.4 | ^7.2",
35+
"symfony/dom-crawler": "^5.4 | ^6.4 | ^7.2",
36+
"symfony/dotenv": "^5.4 | ^6.4 | ^7.2",
37+
"symfony/error-handler": "^5.4 | ^6.4 | ^7.2",
38+
"symfony/filesystem": "^5.4 | ^6.4 | ^7.2",
39+
"symfony/form": "^5.4 | ^6.4 | ^7.2",
40+
"symfony/framework-bundle": "^5.4 | ^6.4 | ^7.2",
41+
"symfony/http-client": "^5.4 | ^6.4 | ^7.2",
42+
"symfony/http-foundation": "^5.4 | ^6.4 | ^7.2",
43+
"symfony/http-kernel": "^5.4 | ^6.4 | ^7.2",
44+
"symfony/mailer": "^5.4 | ^6.4 | ^7.2",
45+
"symfony/mime": "^5.4 | ^6.4 | ^7.2",
46+
"symfony/notifier": "^5.4 | ^6.4 | ^7.2",
47+
"symfony/options-resolver": "^5.4 | ^6.4 | ^7.2",
48+
"symfony/property-access": "^5.4 | ^6.4 | ^7.2",
49+
"symfony/property-info": "^5.4 | ^6.4 | ^7.2",
50+
"symfony/routing": "^5.4 | ^6.4 | ^7.2",
51+
"symfony/security-bundle": "^5.4 | ^6.4 | ^7.2",
52+
"symfony/security-core": "^5.4 | ^6.4 | ^7.2",
53+
"symfony/security-csrf": "^5.4 | ^6.4 | ^7.2",
54+
"symfony/security-http": "^5.4 | ^6.4 | ^7.2",
55+
"symfony/twig-bundle": "^5.4 | ^6.4 | ^7.2",
56+
"symfony/validator": "^5.4 | ^6.4 | ^7.2",
57+
"symfony/var-exporter": "^5.4 | ^6.4 | ^7.2",
5858
"vlucas/phpdotenv": "^4.2 | ^5.4"
5959
},
6060
"suggest": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A Codeception module for Symfony framework.
99

1010
## Requirements
1111

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

1515
## Installation

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy