--- /dev/null
- - '7.0'
- - '7.1'
+ name: PHP
+
+ on:
+ push:
+ branches:
+ - "5.2"
+ - "5.3"
+ - master
+ pull_request:
+
+ jobs:
+ syntax:
+ name: "Check Syntax (${{ matrix.php }})"
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php:
+ - '7.2'
+ - '7.3'
+ - '7.4'
+ - '8.0'
+ steps:
+ - name: Set up PHP
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ - uses: actions/checkout@v2
+ - 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'