Skip to content

[TASK] Clarify todo in parser exception #5270

[TASK] Clarify todo in parser exception

[TASK] Clarify todo in parser exception #5270

Workflow file for this run

name: build
on:
push:
pull_request:
schedule:
- cron: '57 5 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4', '8.5']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
extensions: mbstring, json
- name: Validate composer.json
run: composer validate
- name: Lint PHP
run: |
find src/ tests/ -name '*.php' -print0 | xargs -0 -n1 -P4 php -dxdebug.mode=off -l >/dev/null
- name: Install dependencies
run: COMPOSER_ROOT_VERSION=dev-main composer update
- name: CGL check
if: ${{ matrix.php <= '8.3' }}
run: vendor/bin/php-cs-fixer fix -v --diff --dry-run --show-progress none
- name: Phpstan
if: ${{ matrix.php <= '8.3' }}
run: vendor/bin/phpstan analyze --no-progress
- name: Phpunit
run: vendor/bin/phpunit
- name: Phpunit random order
run: vendor/bin/phpunit --order-by random
- name: Documentation integrity
run: |
# Generate ViewHelper documentation
FLUID_DOCUMENTATION_OUTPUT_DIR=DocumentationTemp vendor/bin/fluidDocumentation generate vendor/t3docs/fluid-documentation-generator/config/fluidStandalone/*
# Merge into existing documentation
cp -r DocumentationTemp/Fluid DocumentationTemp/Fluid.json Documentation/ViewHelpers/ && rm -r DocumentationTemp
# Add generated JSON to git to check for changes (= PHP code of ViewHelper was changed)
git add Documentation/ViewHelpers/Fluid.json
# Ignore changes on existing documentation files (= ViewHelper documentation differs from default)
git checkout Documentation/ViewHelpers/
# ... but add new documentation files (= new ViewHelper was added without rst file)
git add Documentation/ViewHelpers/
# Use git to check for changes
git status
git status | grep -q "nothing to commit, working tree clean"