This repo holds a reusable workflow for checking PHP files in GovPress projects.
In calling .yml workflow file:
name: PHP syntax check
on: [push]
jobs:
php-syntax-check:
uses: dxw/govpress-workflow-php-syntax-check/.github/workflows/php-syntax-check.yml@v0.1
Can be tested locally using act, for example in calling repo:
act -W '.github/workflows/php-syntax-check.yml';
To test errors locally, will need a PHP error added to a file on default (main) branch.