Skip to content

Commit b378410

Browse files
committed
Update CI workflow and install task for dependency installation
Removed `lowest-deps` testing for PHP 8.2 in the workflow matrix. Updated the `install` task in `castor.php` to support installing dependencies with the `--prefer-lowest` flag when required.
1 parent c3e74e3 commit b378410

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ jobs:
180180
strategy:
181181
matrix:
182182
include:
183-
- php-version: '8.2'
184-
lowest-deps: true
185183
- php-version: '8.2'
186184
- php-version: '8.3'
187185
- php-version: '8.4'

castor.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,13 @@ function deptrac(): void
283283
}
284284

285285
#[AsTask(description: 'Install the dependencies')]
286-
function install(): void
286+
function install(bool $lowest = false): void
287287
{
288-
phpqa(['composer', 'install']);
288+
$command = ['composer', 'install'];
289+
if ($lowest) {
290+
$command[] = '--prefer-lowest';
291+
}
292+
phpqa($command);
289293
}
290294

291295
#[AsTask(description: 'Run PHP parallel linter')]

0 commit comments

Comments
 (0)