Skip to content

[CI] [Backport 12.4] Lint code with PHP 8.4 (#295) #855

[CI] [Backport 12.4] Lint code with PHP 8.4 (#295)

[CI] [Backport 12.4] Lint code with PHP 8.4 (#295) #855

Workflow file for this run

name: tests
on:
push:
pull_request:
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint PHP
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lint
code-quality:
name: Code Quality
runs-on: ubuntu-latest
env:
php: '8.1'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install testing system
run: Build/Scripts/runTests.sh -p ${{ env.php }} -s composerUpdate
- name: Composer validate
run: Build/Scripts/runTests.sh -p ${{ env.php }} -s composerValidate
- name: Composer normalize
run: Build/Scripts/runTests.sh -p ${{ env.php }} -s composerNormalize -n
- name: CGL
run: Build/Scripts/runTests.sh -n -p ${{ env.php }} -s cgl
- name: PHPStan
run: Build/Scripts/runTests.sh -p ${{ env.php }} -s phpstan
xliff-lint:
name: "XLIFF linter"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "XLIFF lint"
uses: TYPO3-Continuous-Integration/TYPO3-CI-Xliff-Lint@v1