Skip to content

Commit 80c66d5

Browse files
dd32claude
andcommitted
Optimize CI: test full PHP matrix on push, only 7.4+8.5 on PRs
Pushes to trunk/copilot branches test all PHP versions (7.4-8.5). PRs only test the oldest and newest versions to reduce CI time. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a441046 commit 80c66d5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
strategy:
4646
fail-fast: false
4747
matrix:
48-
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
48+
# PRs test only the oldest and newest supported versions.
49+
# Pushes to trunk/copilot branches test the full range.
50+
php: ${{ github.event_name == 'push' && fromJSON('["7.4","8.0","8.1","8.2","8.3","8.4","8.5"]') || fromJSON('["7.4","8.5"]') }}
4951
steps:
5052
- uses: actions/checkout@v4
5153

0 commit comments

Comments
 (0)