Skip to content

Commit 8b2b6b9

Browse files
author
Greg Bowler
authored
Ci matrix builds and QA tooling (#209)
* stan: better type hints for query strings * build: upgrade stan * build: upgrade phpunit * build: upgrade phpunit * test: introduce phpmd, phpcs * ci: upgrade ci * build: update dependencies * build: branch alias * build: branch alias * build: bump version * build: bump version * build: bump version * build: bump version * build: branch alias * build: branch alias * build: fix test error
1 parent 05566d3 commit 8b2b6b9

27 files changed

+471
-1229
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020

2121
- name: Composer install
2222
uses: php-actions/composer@v6
23+
env:
24+
COMPOSER_ROOT_VERSION: dev-master
2325
with:
2426
php_version: ${{ matrix.php }}
2527

@@ -58,8 +60,6 @@ jobs:
5860
with:
5961
php_version: ${{ matrix.php }}
6062
php_extensions: xdebug
61-
configuration: test/phpunit/phpunit.xml
62-
bootstrap: vendor/autoload.php
6363
coverage_text: _coverage/coverage.txt
6464
coverage_clover: _coverage/clover.xml
6565

@@ -108,6 +108,7 @@ jobs:
108108
with:
109109
php_version: ${{ matrix.php }}
110110
path: src/
111+
level: 7
111112

112113
phpmd:
113114
runs-on: ubuntu-latest

composer.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,22 @@
33
"description": "PSR-7 HTTP message implementation.",
44
"license": "MIT",
55

6+
"extra": {
7+
"branch-alias": {
8+
"dev-master": "1.2.3-dev",
9+
"dev-ci": "1.2.3-dev"
10+
}
11+
},
12+
613
"require": {
714
"php": ">=8.1",
8-
"phpgt/input": "^v1",
9-
"psr/http-message": "^v1.0.1",
10-
"willdurand/negotiation": "v3.1.0"
15+
"phpgt/input": "^1.2",
16+
"psr/http-message": "^2.0",
17+
"willdurand/negotiation": "3.1.0"
1118
},
1219
"require-dev": {
13-
"phpstan/phpstan": "^1.9",
14-
"phpunit/phpunit": "^10.0",
20+
"phpstan/phpstan": "^1.10",
21+
"phpunit/phpunit": "^10.1",
1522
"phpmd/phpmd": "^2.13",
1623
"squizlabs/php_codesniffer": "^3.7"
1724
},
@@ -23,7 +30,7 @@
2330
},
2431
"autoload-dev": {
2532
"psr-4": {
26-
"Gt\\Http\\Test\\": "./test/unit"
33+
"Gt\\Http\\Test\\": "./test/phpunit"
2734
}
2835
},
2936

0 commit comments

Comments
 (0)