Skip to content

Commit 8568ff5

Browse files
fix: define matrix build for different PHP versions (#7)
1 parent dde8b82 commit 8568ff5

File tree

3 files changed

+399
-213
lines changed

3 files changed

+399
-213
lines changed

.github/workflows/qa.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on: pull_request
44

55
jobs:
66
qa:
7+
strategy:
8+
matrix:
9+
version: [ '8.2', '8.3', '8.4', 'latest' ]
710
name: QA
811
runs-on: ubuntu-latest
912
timeout-minutes: 15
@@ -14,8 +17,11 @@ jobs:
1417
- name: Use PHP
1518
uses: shivammathur/setup-php@v2
1619
with:
17-
php-version: '8.4'
20+
php-version: ${{ matrix.version }}
1821
tools: composer
22+
env:
23+
update: true
24+
1925
- name: Install dependencies
2026
run: |
2127
composer install

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,27 @@
2424
],
2525
"minimum-stability": "stable",
2626
"require": {
27+
"php": ">=8.2",
2728
"guzzlehttp/guzzle": "7.9.3"
2829
},
2930
"require-dev": {
30-
"phpunit/phpunit": "12.1.4",
31+
"phpstan/phpstan": "2.1.16",
32+
"phpunit/phpunit": "11.5.21",
3133
"symplify/easy-coding-standard": "12.5.16",
3234
"testcontainers/testcontainers": "1.0.2"
3335
},
3436
"scripts": {
35-
"analyze": "vendor/bin/ecs check",
37+
"analyze": "vendor/bin/ecs check && composer stan",
3638
"format": "vendor/bin/ecs check --fix",
39+
"stan": " vendor/bin/phpstan analyze -l 5 src tests",
3740
"qa": [
3841
"composer analyze",
3942
"composer test"
4043
],
4144
"test": "vendor/bin/phpunit"
4245
},
4346
"config": {
47+
"sort-packages": true,
4448
"allow-plugins": {
4549
"php-http/discovery": true
4650
}

0 commit comments

Comments
 (0)