Skip to content

Commit b96ef5c

Browse files
committed
Attempting to allow dev deps for php 8.1
1 parent 4d3af60 commit b96ef5c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484

8585
env:
8686
SYMFONY_VERSION: ${{ matrix.symfony-version }}
87+
MAKER_ALLOW_DEV_DEPS_IN_APP: ${{ matrix.allow-dev-deps-in-apps }}
8788

8889
strategy:
8990
fail-fast: false
@@ -96,6 +97,7 @@ jobs:
9697
- '5.4.x-dev'
9798
- '6.0.x-dev'
9899
dependency-versions: ['highest']
100+
allow-dev-deps-in-apps: ['0']
99101
include:
100102
# testing lowest PHP version with LTS
101103
- php-version: '7.1.3'
@@ -110,6 +112,8 @@ jobs:
110112
- php-version: '8.1'
111113
symfony-version: '5.3.*'
112114
dependency-versions: 'highest'
115+
# temporarily needed until some packages support php 8.1
116+
allow-dev-deps-in-apps: '1'
113117

114118
steps:
115119
- name: "Checkout code"

src/Test/MakerTestEnvironment.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@ private function buildFlexSkeleton(): void
262262
];
263263
$this->processReplacements($replacements, $this->flexPath);
264264

265+
if ($_SERVER['MAKER_ALLOW_DEV_DEPS_IN_APP'] ?? false) {
266+
MakerTestProcess::create('composer config minimum-stability dev', $this->flexPath)->run();
267+
MakerTestProcess::create('composer config prefer-stable true', $this->flexPath)->run();
268+
}
269+
265270
// fetch a few packages needed for testing
266271
MakerTestProcess::create('composer require phpunit browser-kit symfony/css-selector --prefer-dist --no-progress --no-suggest', $this->flexPath)
267272
->run();

0 commit comments

Comments
 (0)