Skip to content

Commit

Permalink
Merge pull request #6 from artemeon/phpstan
Browse files Browse the repository at this point in the history
feat: PHPStan Level 9
  • Loading branch information
marcreichel committed Feb 29, 2024
2 parents 3a4addd + 6339397 commit ee1f71a
Show file tree
Hide file tree
Showing 13 changed files with 879 additions and 2,765 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PHPStan
on:
pull_request:
push:
branches:
- master
jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
coverage: none
- name: Composer install
run: composer install --no-interaction --no-ansi --no-progress
- name: Run PHPStan
run: composer run phpstan
22 changes: 22 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PHPUnit
on:
pull_request:
push:
branches:
- master
jobs:
phpunit:
name: PHPUnit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
coverage: none
- name: Composer install
run: composer install --no-interaction --no-ansi --no-progress
- name: Run PHPUnit
run: vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml
35 changes: 0 additions & 35 deletions .github/workflows/psalm_unit_tests.yml

This file was deleted.

5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@
"role": "Developer"
}
],
"scripts": {
"phpstan": "php ./vendor/bin/phpstan analyse --memory-limit=4G"
},
"require": {
"php": "~8.1",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "3.*",
"vimeo/psalm": "^4.22"
"phpstan/phpstan": "^1.10.59"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit ee1f71a

Please sign in to comment.