Skip to content

test: up to phpstan level 4 #42

test: up to phpstan level 4

test: up to phpstan level 4 #42

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: PHP ${{ matrix.php-versions }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install Dependencies
run: |
composer update --no-progress --no-suggest --prefer-stable --optimize-autoloader
- name: Test
run: |
if [ 1 -eq "$(echo "${{ matrix.php-versions }} < 8.1" | bc)" ]; then
vendor/bin/phpunit --configuration phpunit.7.5.xml
else
vendor/bin/phpunit
fi
- name: Phpstan
run: |
if [ 1 -eq "$(echo "${{ matrix.php-versions }} > 7.1" | bc)" ]; then
vendor/bin/phpstan
fi