Skip to content

Debug PHP 8.5 - fix syntax #641

Debug PHP 8.5 - fix syntax

Debug PHP 8.5 - fix syntax #641

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
tests:
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: PHP ${{ matrix.php-versions }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.php-versions >= '8.5' }}
strategy:
fail-fast: false
matrix:
php-versions: ['8.5']
os: [ubuntu-latest, windows-latest]
steps:
- name: Configure git
if: runner.os == 'Windows'
run: git config --system core.autocrlf false; git config --system core.eol lf
- name: Checkout
uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
ini-values: date.timezone=Europe/Berlin
- name: Validate composer.json and composer.lock
run: composer validate
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: >
curl -sSL https://github.com/xp-runners/reference/releases/download/v9.2.0/xp-run-9.2.0.sh > xp-run &&
composer install --prefer-dist &&
echo "vendor/autoload.php" > composer.pth
- name: Run test suite
run: >
php -v ;
php -m ;
for i in pipe_to_callable pipe_to_variable pipe_to_callable_string pipe_to_callable_array pipe_to_callable_without_all_args pipe_to_callable_new pipe_to_callable_anonymous_new pipe_to_closure pipe_to_throw missing_function missing_argument pipe_chain nullsafe_pipe nullsafe_chain concat_precedence addition_precedence comparison_precedence ternary_precedence short_ternary_precedence coalesce_precedence rfc_example rejects_by_reference_functions accepts_prefer_by_reference_functions execution_order interrupted_by_exception generators pipe_precedence_challenges ; do sh xp-run xp.test.Runner lang.ast.unittest.emit.PipelinesTest::$i --output=code ; done