Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Install php
uses: shivammathur/setup-php@v2
with:
php-version: "7.3"
php-version: "7.4"

- name: Install dependencies
run: composer update --dev --no-interaction --prefer-dist --no-progress --no-suggest --ansi
Expand All @@ -32,10 +32,10 @@ jobs:
- name: Install php
uses: shivammathur/setup-php@v2
with:
php-version: "7.3"
php-version: "7.4"

- name: Install dependencies
run: composer update --dev --no-interaction --prefer-dist --no-progress --no-suggest --ansi

- name: Run phpstan
run: php ./vendor/phpstan/phpstan/phpstan.phar analyse --no-progress
run: php ./vendor/bin/phpstan analyse --no-progress
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ on: [pull_request]
jobs:
tests:
name: Run PHP Unit tests
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.3', '7.4', '8.0', '8.1']
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
29 changes: 23 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],

"require": {
"php": "^7.3 || ^8.0",
"php": "^7.4 || ^8.0",
"ext-pcre": "*",
"ext-mbstring": "*",

Expand All @@ -20,10 +20,7 @@
},

"require-dev": {
"phpunit/phpunit": "^9.0",
"php-defer/php-defer": "^4.0",
"squizlabs/php_codesniffer": "^3.5",
"phpstan/phpstan": "^0.12"
"bamarni/composer-bin-plugin": "^1.8"
},

"autoload": {
Expand All @@ -40,5 +37,25 @@

"bin": [
"./bin/php-stub-generator"
]
],

"config": {
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
},

"extra": {
"bamarni-bin": {
"bin-links": true,
"target-directory": "vendor-bin",
"forward-command": true
}
},

"scripts": {
"tests": "@php vendor/bin/phpunit",
"cs": "@php vendor/bin/phpcs",
"phpstan": "@php vendor/bin/phpstan analyse"
}
}
Loading
Loading