name: PHP Syntax Check on: push: branches: [ smf21, smf20, master ] pull_request: branches: [ smf21, smf20, master ] workflow_dispatch: jobs: syntax-checker: runs-on: ${{ matrix.operating-system }} strategy: matrix: operating-system: [ ubuntu-latest ] php: [ '7.1', '7.2', '7.3', '7.4', '8.0' ] name: PHP ${{ matrix.php }} Syntax Check steps: - uses: actions/checkout@master with: submodules: false - name: Setup PHP id: SetupPHP uses: nanasess/setup-php@master with: php-version: ${{ matrix.php }} - run: php ./.github/scripts/check-php-syntax.php ./