Skip to content

Commit

Permalink
Ci matrix builds and QA tooling (#209)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
g105b authored May 3, 2023
1 parent 05566d3 commit 8b2b6b9
Show file tree
Hide file tree
Showing 27 changed files with 471 additions and 1,229 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:

- name: Composer install
uses: php-actions/composer@v6
env:
COMPOSER_ROOT_VERSION: dev-master
with:
php_version: ${{ matrix.php }}

Expand Down Expand Up @@ -58,8 +60,6 @@ jobs:
with:
php_version: ${{ matrix.php }}
php_extensions: xdebug
configuration: test/phpunit/phpunit.xml
bootstrap: vendor/autoload.php
coverage_text: _coverage/coverage.txt
coverage_clover: _coverage/clover.xml

Expand Down Expand Up @@ -108,6 +108,7 @@ jobs:
with:
php_version: ${{ matrix.php }}
path: src/
level: 7

phpmd:
runs-on: ubuntu-latest
Expand Down
19 changes: 13 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,22 @@
"description": "PSR-7 HTTP message implementation.",
"license": "MIT",

"extra": {
"branch-alias": {
"dev-master": "1.2.3-dev",
"dev-ci": "1.2.3-dev"
}
},

"require": {
"php": ">=8.1",
"phpgt/input": "^v1",
"psr/http-message": "^v1.0.1",
"willdurand/negotiation": "v3.1.0"
"phpgt/input": "^1.2",
"psr/http-message": "^2.0",
"willdurand/negotiation": "3.1.0"
},
"require-dev": {
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^10.0",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.1",
"phpmd/phpmd": "^2.13",
"squizlabs/php_codesniffer": "^3.7"
},
Expand All @@ -23,7 +30,7 @@
},
"autoload-dev": {
"psr-4": {
"Gt\\Http\\Test\\": "./test/unit"
"Gt\\Http\\Test\\": "./test/phpunit"
}
},

Expand Down
Loading

0 comments on commit 8b2b6b9

Please sign in to comment.