Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 6 additions & 16 deletions .github/workflows/mago.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.3', '8.4', '8.5']
php: ['8.4', '8.5']
dependencies: ['lowest', 'locked', 'latest']
steps:
- name: Checkout
Expand All @@ -24,29 +24,19 @@ jobs:
coverage: none
tools: mago

# PHPUnit 13 requires PHP 8.4+. On 8.3, install without dev
# dependencies so Mago can still lint production code.
- name: Determine Composer flags
run: |
FLAGS="--no-interaction --no-progress"
if [ "${{ matrix.php }}" = "8.3" ]; then
FLAGS="--no-dev $FLAGS"
fi
echo "COMPOSER_FLAGS=$FLAGS" >> "$GITHUB_ENV"

# Resolve dependencies at the configured strategy level.
# "locked" uses the committed composer.lock as-is.
- name: Install dependencies (lowest)
if: matrix.dependencies == 'lowest'
run: composer update --prefer-lowest $COMPOSER_FLAGS
run: composer update --prefer-lowest --no-interaction --no-progress

- name: Install dependencies (locked)
if: matrix.dependencies == 'locked'
run: composer install $COMPOSER_FLAGS
run: composer install --no-interaction --no-progress

- name: Install dependencies (latest)
if: matrix.dependencies == 'latest'
run: composer update $COMPOSER_FLAGS
run: composer update --no-interaction --no-progress

# Set the Mago PHP version via env var so it overrides mago.toml
# for each matrix PHP version without mutating the config file.
Expand All @@ -61,9 +51,9 @@ jobs:
run: mago lint

- name: Analyze
if: (success() || failure()) && matrix.php != '8.3'
if: success() || failure()
run: mago analyze

- name: Test
if: (success() || failure()) && matrix.php != '8.3'
if: success() || failure()
run: ./vendor/bin/phpunit --colors=always
15 changes: 7 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,19 @@
}
],
"require": {
"php": "~8.3.0 || ~8.4.0 || ~8.5.0",
"fig/http-message-util": "^1.1",
"laminas/laminas-diactoros": "^3.8",
"laminas/laminas-filter": "3.5.x-dev",
"laminas/laminas-inputfilter": "3.0.x-dev",
"php": "~8.4.0 || ~8.5.0",
"php-standard-library/type": "^6.2.1",
"psr/http-message": "^2.0",
"psr/http-server-handler": "^1.0",
"psr/http-server-middleware": "^1.0",
"webmozart/assert": "^2.4.1"
"psr/http-server-middleware": "^1.0"
},
"require-dev": {
"fig/http-message-util": "^1.1",
"laminas/laminas-diactoros": "^3.8",
"laminas/laminas-filter": "3.5.x-dev",
"laminas/laminas-inputfilter": "3.0.x-dev",
"php-db/phpdb": "^0.6.0",
"phpunit/phpunit": "^11.5.55",
"phpunit/phpunit": "^13.2.0",
"roave/security-advisories": "dev-master"
},
"autoload": {
Expand Down
Loading