Skip to content

change pmmp version #37

change pmmp version

change pmmp version #37

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: PHPStan analysis
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- "8.1"
- "8.2"
- "8.3"
steps:
- uses: actions/checkout@v6
- name: Setup PHP
uses: pmmp/setup-php-action@3.2.0
with:
php-version: ${{ matrix.php }}
install-path: "./bin"
tools: phpstan
pm-version-major: 5
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v5
with:
path: vendor
key: php-${{ matrix.php }}-${{ runner.os }}-php-${{ hashFiles('**/composer.json') }}
- name: update autoload or Install dependencies
run: (test -d vendor && (composer dump-autoload)) || (composer install --prefer-dist --no-progress)
- name: Run PHPStan
run: ./vendor/bin/phpstan analyze --no-progress --memory-limit=2G