Skip to content

Commit

Permalink
Adapt text matrix, add phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
gradinarufelix committed Oct 4, 2023
1 parent ea1ad15 commit 8badf4a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ on:

jobs:
run-tests:
name: "Test (PHP ${{ matrix.php-versions }}, Neos ${{ matrix.neos-versions }})"

strategy:
fail-fast: false
matrix:
php-versions: [ '8.1' ]
neos-versions: [ '7.3' ]
include:
- php-versions: '8.1'
neos-versions: '8.3'

runs-on: ubuntu-latest

Expand All @@ -18,7 +28,10 @@ jobs:
- name: "Install PHP with extensions"
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: ${{ matrix.php-versions }}

- name: Set Neos Version
run: composer require neos/neos ^${{ matrix.neos-versions }} --no-progress --no-interaction

- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
Expand Down
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,17 @@
"bin-dir": "bin"
},
"require-dev": {
"phpstan/phpstan": "1.10.37",
"squizlabs/php_codesniffer": "^3.7",
"phpunit/phpunit": "^9",
"mockery/mockery": "@stable",
"mikey179/vfsstream": "@stable"
},
"scripts": {
"test": "Packages/Libraries/phpunit/phpunit/phpunit --bootstrap Tests/UnitTestBootstrap.php --configuration Tests/phpunit.xml"
}
"fix:style": "phpcbf --colors --standard=PSR12 Classes",
"test:style": "phpcs --colors -n --standard=PSR12 Classes",
"test:stan": "phpstan analyse Classes",
"test:unit": "Packages/Libraries/phpunit/phpunit/phpunit --bootstrap Tests/UnitTestBootstrap.php --configuration Tests/phpunit.xml",
"phpstan-cc": "phpstan clear cache",
"test": ["composer install", "composer test:unit", "composer test:style" , "composer test:stan"] }
}

0 comments on commit 8badf4a

Please sign in to comment.