Skip to content

FRW-998 Fix phpstan vestion to 1.9.16 to keep BC #157

FRW-998 Fix phpstan vestion to 1.9.16 to keep BC

FRW-998 Fix phpstan vestion to 1.9.16 to keep BC #157

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
validation:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php-version: [ '8.1', '8.2' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl, pdo_mysql
- name: Validate composer.json and composer.lock
run: composer validate
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Composer cache
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Check PHP for syntax errors
run: find ./src -path src -prune -o -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )
- name: Composer install
run: composer install --prefer-dist --no-interaction
- name: Test
run: composer test
- name: PHPStan
run: composer stan
prefer-lowest:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php-version: [ '8.0' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl, pdo_mysql
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Composer cache
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Composer prefer-lowest
run: composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable
- name: Check PHP for syntax errors
run: find ./src -path src -prune -o -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )