Skip to content

Add PHPStan level 2 #19

Add PHPStan level 2

Add PHPStan level 2 #19

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
experimental: [false]

Check failure on line 13 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yaml (Line: 13, Col: 13): Unexpected value 'experimental' .github/workflows/test.yaml (Line: 22, Col: 13): Unexpected value 'include'
matrix:
php-version:
- 7.3
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
include:
- php: 8.2
analysis: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
tools: composer:v2
- name: Install Composer dependencies
uses: ramsey/composer-install@v1
with:
composer-options: --prefer-dist
- name: Static analysis
if: matrix.analysis
run: vendor/bin/phpstan
- name: Run Tests
run: vendor/bin/phpunit