Skip to content

Commit eb2d549

Browse files
committed
use php 8.1 for tests
1 parent ac97ca8 commit eb2d549

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/test.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,6 @@ jobs:
101101
run: php vendor/bin/simple-phpunit
102102
working-directory: src/LazyImage
103103

104-
- name: Notify Dependencies
105-
uses: ramsey/composer-install@v2
106-
with:
107-
working-directory: src/Notify
108-
dependency-versions: lowest
109-
- name: Notify Tests
110-
run: php vendor/bin/simple-phpunit
111-
working-directory: src/Notify
112-
113104
tests-php8-low-deps:
114105
runs-on: ubuntu-latest
115106
steps:
@@ -193,6 +184,15 @@ jobs:
193184
working-directory: src/LiveComponent
194185
run: php vendor/bin/simple-phpunit
195186

187+
tests-php81-high-deps:
188+
runs-on: ubuntu-latest
189+
steps:
190+
- uses: actions/checkout@master
191+
- uses: shivammathur/setup-php@v2
192+
with:
193+
php-version: '8.1'
194+
- run: php .github/build-packages.php
195+
196196
- name: Notify Dependencies
197197
uses: ramsey/composer-install@v2
198198
with:

src/Notify/Tests/Kernel/FrameworkAppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function registerBundles(): iterable
3535
public function registerContainerConfiguration(LoaderInterface $loader)
3636
{
3737
$loader->load(function (ContainerBuilder $container) {
38-
$container->loadFromExtension('framework', ['secret' => '$ecret']);
38+
$container->loadFromExtension('framework', ['secret' => '$ecret', 'http_method_override' => false]);
3939
});
4040
}
4141
}

src/Notify/Tests/Kernel/TwigAppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function registerBundles(): iterable
4141
public function registerContainerConfiguration(LoaderInterface $loader)
4242
{
4343
$loader->load(function (ContainerBuilder $container) {
44-
$container->loadFromExtension('framework', ['secret' => '$ecret', 'test' => true]);
44+
$container->loadFromExtension('framework', ['secret' => '$ecret', 'test' => true, 'http_method_override' => false]);
4545
$container->loadFromExtension('twig', ['default_path' => __DIR__.'/templates', 'strict_variables' => true, 'exception_controller' => null]);
4646
$container->loadFromExtension('webpack_encore', ['output_path' => '%kernel.project_dir%/public/build']);
4747
$container->loadFromExtension('mercure', [

0 commit comments

Comments
 (0)