Update phpstan/phpstan requirement from 1.10.6 to 1.10.50 #201
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: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: PHP ${{ matrix.php-versions }} ${{ matrix.composer-args }} | |
strategy: | |
fail-fast: false | |
matrix: | |
operating-system: [ubuntu-latest] | |
php-versions: ['7.3', '7.4', '8.0', '8.1'] | |
composer-args: ['', '--prefer-lowest'] | |
runs-on: ${{ matrix.operating-system }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring | |
tools: cs2pr | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: php${{ matrix.php-versions }}-composer-${{ matrix.composer-args }}-${{ hashFiles('**/composer.json') }} | |
restore-keys: php${{ matrix.php-versions }}-composer-${{ matrix.composer-args }}- | |
- name: Install Dependencies | |
run: | | |
composer update --no-progress --no-suggest --prefer-stable --optimize-autoloader ${{ matrix.composer-args }} | |
- name: Static Analysis | |
run: composer static-analysis | |
- name: Code Style Check | |
env: | |
PHP_CS_FIXER_IGNORE_ENV: true | |
run: composer check-style -- --format=checkstyle | cs2pr | |
- name: Test | |
run: composer tests |