Skip to content

migrate to WSC 6 api #13

migrate to WSC 6 api

migrate to WSC 6 api #13

Workflow file for this run

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