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
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🎉 Create release
uses: googleapis/release-please-action@v4
uses: googleapis/release-please-action@v5
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on: # yamllint disable-line rule:truthy

jobs:
testing:
timeout-minutes: 4
timeout-minutes: 15
runs-on: ${{ matrix.os }}
env:
COMPOSER_ROOT_VERSION: '1.x-dev'
Expand All @@ -25,6 +25,7 @@ jobs:
os:
- ubuntu-latest
php-version:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
Expand All @@ -46,15 +47,25 @@ jobs:
- name: 🤖 Validate composer.json and composer.lock
run: composer validate --ansi --strict

# Infection is dev-only and requires PHP >= 8.3, which breaks installation
# on the 8.2 matrix leg. It is not needed to run the test suite.
# Remove unused libs
- name: 🧹 Remove Infection (incompatible with PHP 8.2)
run: composer remove --dev infection/infection --no-update --no-interaction
run: composer remove --dev infection/infection vimeo/psalm spiral/code-style buggregator/trap testo/bridge-infection --no-update --no-interaction

- name: 📥 Install dependencies with composer
if: matrix.php-version != '8.1'
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies }}

- name: 📥 Install and downgrade for PHP 8.1
if: matrix.php-version == '8.1'
uses: php-internal/actions/downgrade@v1
with:
php-version: '8.1'
dependency-versions: ${{ matrix.dependencies }}
# Downgrade the test harness (which uses 8.2+ syntax) and the testo config, but not src:
# the shipped library must be exercised on 8.1 as written.
paths: tests testo.php

- name: 🧪 Run tests
run: composer test
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
},
"require-dev": {
"buggregator/trap": "^1.15",
"infection/infection": "^0.33.2",
"infection/infection": "^0.35.2",
"llm/skills": "^1.7",
"roxblnfk/unpoly": "^1.8.1",
"spiral/code-style": "^2.3.1",
"testo/bridge-infection": "^0.1.6",
"testo/testo": "^0.10.21",
"testo/testo": "^0.10.47",
"vimeo/psalm": "^7"
},
"minimum-stability": "dev",
Expand Down
Loading