Update phpstan/phpstan requirement from ^1.0 to ^1.0 || ^2.0 #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
run-tests: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [ "8.1", "8.2", "8.3" ] | |
composer_flags: [ "", "--prefer-lowest" ] | |
name: "PHP ${{ matrix.php }} ${{ matrix.composer_flags}}" | |
env: | |
PHP: ${{ matrix.os }} | |
COMPOSER_MEMORY_LIMIT: -1 | |
COMPOSER_FLAGS: ${{ matrix.composer_flags }} | |
PHP_VERSION: ${{ matrix.php }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: xdebug, zip | |
- name: Install dependencies | |
run: | | |
composer self-update | |
COMPOSER_MEMORY_LIMIT=-1 composer update --prefer-dist --no-interaction $COMPOSER_FLAGS | |
- name: Static analysis with PHPStan | |
run: vendor/bin/phpstan analyse | |
- name: Coding style PSR12 Check | |
run: vendor/bin/phpcs | |
- name: Psalm check | |
run: vendor/bin/psalm | |
- name: Execute tests (Unit and Feature) | |
run: vendor/bin/phpunit |