Skip to content

Update phpstan/phpstan requirement from ^1.0 to ^1.0 || ^2.0 #10

Update phpstan/phpstan requirement from ^1.0 to ^1.0 || ^2.0

Update phpstan/phpstan requirement from ^1.0 to ^1.0 || ^2.0 #10

Workflow file for this run

name: pull_request
on: [pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
php: ['8.2', '8.1', '8.0']
name: PHP ${{ matrix.php }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: zip, curl, xdebug
coverage: xdebug
- name: Update composer
run: composer selfupdate
- name: Install dependencies
run: composer update --prefer-dist --no-interaction
- name: Execute tests
run: composer test
env:
XDEBUG_MODE: coverage
- name: Run static analysis
run: composer static-analysis