Skip to content

Merge pull request #231 from HanashiDev/next #713

Merge pull request #231 from HanashiDev/next

Merge pull request #231 from HanashiDev/next #713

Workflow file for this run

name: PHP
on:
push:
pull_request:
jobs:
syntax:
name: "Check Syntax (${{ matrix.php }})"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- uses: actions/checkout@v4
- run: echo "::add-matcher::.github/php-syntax.json"
- run: |
! find . -type f -name '*.php' -exec php -l '{}' \; 2>&1 |grep -v '^No syntax errors detected'