Skip to content

Allow optional jQuery in Validators and Widgets. #120

Allow optional jQuery in Validators and Widgets.

Allow optional jQuery in Validators and Widgets. #120

Workflow file for this run

on:
- pull_request
- push
name: static analysis
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
phpstan:
name: PHP ${{ matrix.php }}
env:
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi"
EXTENSIONS: ${{ matrix.php < 8.0 && 'apc' || 'apcu' }}, curl, dom, imagick, intl, mbstring, mcrypt, memcached
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2, 8.3, 8.4, 8.5]
steps:
- name: Checkout.
uses: actions/checkout@v5
- name: Install PHP.
uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: ${{ env.EXTENSIONS }}
ini-values: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC', session.save_path="${{ runner.temp }}"
php-version: ${{ matrix.php }}
tools: cs2pr, pie
- name: Update composer.
run: composer self-update
- name: Install dependencies with composer.
run: composer update $DEFAULT_COMPOSER_FLAGS ${{ matrix.php == 8.5 && '--ignore-platform-reqs' || '' }}
- name: Static analysis.
run: vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr