Skip to content

Support tests for PHP 8.5 #55

Support tests for PHP 8.5

Support tests for PHP 8.5 #55

Workflow file for this run

name: PHPStan
on:
workflow_dispatch:
pull_request:
branches:
- master
paths-ignore:
- '**.md'
push:
branches:
- master
paths-ignore:
- '**.md'
jobs:
run:
name: Run
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
extensions: mbstring, intl, opcache, xdebug, xml
tools: composer, cs2pr
- name: Get Composer cache directory
id: composer-cache-dir
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Restore composer cache
id: composer-cache
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Remove composer.lock
run: rm -f composer.lock
- name: Setup Composer
run: composer install
- name: Run PHPStan analysis
run: ./vendor/bin/phpstan analyse -c phpstan-use-baseline.neon