Skip to content

Commit 109d70a

Browse files
cb-freddysartclaude
andcommitted
chore(php-8.4): support both 8.2 and 8.4 via composer + CI matrix
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 7401107 commit 109d70a

2 files changed

Lines changed: 49 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- master
8+
- main
9+
- 'feat/**'
10+
- 'fix/**'
11+
- 'chore/**'
12+
pull_request:
13+
branches:
14+
- develop
15+
- master
16+
- main
17+
18+
jobs:
19+
tests:
20+
name: PHP ${{ matrix.php-version }}
21+
runs-on: ubuntu-latest
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
php-version:
27+
- '8.2'
28+
- '8.4'
29+
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
34+
- name: Setup PHP
35+
uses: shivammathur/setup-php@v2
36+
with:
37+
php-version: ${{ matrix.php-version }}
38+
coverage: none
39+
tools: composer:v2
40+
41+
- name: Validate composer.json
42+
run: composer validate --strict --no-check-publish
43+
44+
- name: Install dependencies
45+
run: composer update --prefer-dist --no-interaction --no-progress
46+
47+
- name: Run PHPUnit
48+
run: vendor/bin/phpunit --testsuite=Unit

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^8.4",
13+
"php": "^8.2 || ^8.4",
1414
"psr/http-message": "^1.0",
1515
"php-http/client-common": "^2.2",
1616
"php-http/httplug": "^2.2",

0 commit comments

Comments
 (0)