Skip to content

Commit

Permalink
make dev-tools php requirement clear (#62)
Browse files Browse the repository at this point in the history
* make dev-tools php requirement clear

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>

* adjust CI

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>

---------

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck authored Jul 8, 2023
1 parent 93ef75f commit 4a2aaee
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php:
php-version:
- '8.2' # highest supported
- '7.3' # lowest supported
steps:
Expand All @@ -109,7 +109,7 @@ jobs:
# see https://github.com/shivammathur/setup-php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: ${{ env.PHP_VERSION_LATEST }}
tools: composer
coverage: none
- name: Install psalm
Expand All @@ -134,7 +134,8 @@ jobs:
--no-diff
--no-cache
--long-progress
--report=${{ env.REPORTS_DIR }}/psalm.php${{ matrix.php }}.junit.xml
--php-version=${{ matrix.php-version }}
--report=${{ env.REPORTS_DIR }}/psalm.php${{ matrix.php-version }}.junit.xml
- name: Artifact reports
if: ${{ ! cancelled() }}
# see https://github.com/actions/upload-artifact
Expand All @@ -155,7 +156,7 @@ jobs:
# see https://github.com/shivammathur/setup-php
uses: shivammathur/setup-php@v2
with:
php-version: '8.1' # not ready for php82 ${{ env.PHP_VERSION_LATEST }}
php-version: ${{ env.PHP_VERSION_LATEST }}
tools: composer
coverage: none
- name: Install PHP-CS-Fixer
Expand Down
3 changes: 3 additions & 0 deletions tools/composer-normalize/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "tools/composer-normalize",
"description": "composer-normalize",
"type": "metapackage",
"require": {
"php": ">=7.4"
},
"require-dev": {
"ergebnis/composer-normalize": "2.28.3",
"roave/security-advisories": "dev-latest"
Expand Down
3 changes: 3 additions & 0 deletions tools/composer-require-checker/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "tools/composer-require-checker",
"description": "composer-require-checker",
"type": "metapackage",
"require": {
"php": ">=7.4"
},
"require-dev": {
"maglnet/composer-require-checker": "3.8.0",
"roave/security-advisories": "dev-latest"
Expand Down
3 changes: 3 additions & 0 deletions tools/composer-unused/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "tools/composer-unused",
"description": "composer-unused",
"type": "metapackage",
"require": {
"php": ">=7.4"
},
"require-dev": {
"icanhazstring/composer-unused": "0.8.10",
"roave/security-advisories": "dev-latest"
Expand Down
3 changes: 3 additions & 0 deletions tools/php-cs-fixer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "tools/php-cs-fixer",
"description": "php-cs-fixer",
"type": "metapackage",
"require": {
"php": ">=7.4"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "3.21.0",
"roave/security-advisories": "dev-latest"
Expand Down
3 changes: 3 additions & 0 deletions tools/psalm/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "tools/psalm",
"description": "psalm and plugins",
"type": "metapackage",
"require": {
"php": ">=7.4"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
"vimeo/psalm": "4.30.0"
Expand Down

0 comments on commit 4a2aaee

Please sign in to comment.