Skip to content

Commit aa39b6d

Browse files
committed
improve build matrix
1 parent dd29788 commit aa39b6d

File tree

6 files changed

+31
-17
lines changed

6 files changed

+31
-17
lines changed

.github/workflows/ci.yaml

+12-7
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ on:
1010

1111
jobs:
1212
php:
13-
name: "PHP ${{ matrix.php-version }} Symfony ${{ matrix.symfony-version }}"
13+
name: "PHP ${{ matrix.php-version }} Symfony ${{ matrix.symfony-version }} ${{ matrix.dependencies}}"
1414
runs-on: ubuntu-latest
1515

1616
env:
1717
KERNEL_CLASS: PHPCR\PhpcrMigrationsBundle\Tests\Resources\App\AppKernel
18+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
1819

1920
strategy:
2021
fail-fast: false
@@ -24,7 +25,11 @@ jobs:
2425
symfony-version: '^5.4'
2526

2627
- php-version: '8.1'
27-
symfony-version: '6.0.*'
28+
symfony-version: '^6.0'
29+
dependencies: 'lowest'
30+
31+
- php-version: '8.1'
32+
symfony-version: '^6.4'
2833

2934
- php-version: '8.2'
3035

@@ -43,11 +48,11 @@ jobs:
4348
ini-values: memory_limit=-1
4449
coverage: none
4550

46-
- name: Composer update
47-
env:
48-
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
49-
run: |
50-
composer update ${{ matrix.composer-flag }} --prefer-dist --no-interaction --no-progress
51+
- name: Install dependencies with Composer
52+
uses: ramsey/composer-install@v3
53+
with:
54+
dependency-versions: ${{ matrix.dependencies }}
55+
composer-options: --prefer-dist
5156

5257
- name: Prepare phpcr odm doctrine dbal
5358
run: vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ CHANGELOG
1010
* Deprecate using `Symfony\Component\DependencyInjection\ContainerAwareInterface` in favor of
1111
`PHPCR\PhpcrMigrationsBundle\ContainerAwareInterface` as Symfony 7 dropped its
1212
ContainerAwareInterface.
13-
On Symfony 6, the legacy ContainerAwareInterface continues to e supported.
13+
On Symfony 6, the legacy ContainerAwareInterface continues to be supported.
1414

1515
1.5.0
1616
-----

composer.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
32
"name": "phpcr/phpcr-migrations-bundle",
43
"description": "PHPCR migrations bundle",
54
"license": "MIT",
@@ -24,9 +23,9 @@
2423
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0"
2524
},
2625
"require-dev": {
27-
"doctrine/doctrine-bundle": "^1.8 || ^2.0",
26+
"doctrine/doctrine-bundle": "^1.8 || ^2.5",
2827
"doctrine/phpcr-odm": "^1.4 || ^2.0",
29-
"doctrine/annotations": "^2.0",
28+
"doctrine/annotations": "^1.14 || ^2.0",
3029
"jackalope/jackalope-doctrine-dbal": "^1.4 || ^2.0",
3130
"symfony/monolog-bundle": "^3.0",
3231
"symfony/phpunit-bridge": "^7.0.6",

tests/Resources/App/AppKernel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
3838
{
3939
$loader->import(CMF_TEST_CONFIG_DIR.'/default.php');
4040
$loader->import(CMF_TEST_CONFIG_DIR.'/phpcr_odm.php');
41-
$loader->load(__DIR__.'/config/config.yml');
41+
$loader->load(__DIR__.'/config/config.php');
4242
}
4343

4444
protected function prepareContainer(ContainerBuilder $container): void

tests/Resources/App/config/config.php

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
$frameworkConfig = [
4+
'property_access' => true,
5+
];
6+
7+
if (class_exists(\Symfony\Component\Validator\Mapping\Loader\AnnotationLoader::class)) {
8+
// Symfony < 7
9+
$frameworkConfig['annotations'] = true;
10+
}
11+
12+
$container->loadFromExtension('framework', $frameworkConfig);
13+
$container->loadFromExtension('phpcr_migrations', [
14+
'version_node_name' => 'jcr:migrations',
15+
]);

tests/Resources/App/config/config.yml

-5
This file was deleted.

0 commit comments

Comments
 (0)