Skip to content

CI: Coding standards and unit tests. #6

CI: Coding standards and unit tests.

CI: Coding standards and unit tests. #6

Workflow file for this run

name: PHP Lint
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.5, 8.4, 8.3, 8.2]
name: PHP ${{ matrix.php }}
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
- name: Lint PHP
run: '! find include/ modules/ resources/ tests/ -name "*.php" -exec php -l {} \; 2>&1 | grep -v "^No syntax errors"'