Skip to content

Change

Change #11

Workflow file for this run

name: Tests
on:
push:
pull_request:
paths-ignore:
- '**.md'
jobs:
tests:
name: PHP ${{ matrix.php }} ${{ matrix.php-jit == 'on' && 'with' || 'without' }} JIT on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.php == 'nightly' }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
php:
- 8.1
php-jit:
- on
- off
include:
- php: nightly
os: ubuntu-latest
php-jit: on
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, opcache, pcre, gmp
ini-values: zend.assertions=1, opcache.enable_cli=1, opcache.memory_consumption=256, opcache.jit=${{ matrix.php-jit == 'on' && 1255 || 'disable' }}, opcache.jit_buffer_size=${{ matrix.php-jit == 'on' && '256M' || '0' }}
coverage: none
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
if [[ "${{ matrix.php }}" == 'nightly' ]]; then
composer update --no-interaction --ignore-platform-reqs
else
composer update --no-interaction
fi
- name: Run PHPCS
run: vendor/bin/phpcs
- name: Run PHPStan
run: vendor/bin/phpstan
- name: Run Tests
run: vendor/bin/phpunit