Merge branch '5.3'
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 27 Oct 2020 08:48:10 +0000 (09:48 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 27 Oct 2020 08:48:10 +0000 (09:48 +0100)
1  2 
.github/workflows/php.yml

index 0000000000000000000000000000000000000000,6a06b5237ecb0afb61b4385ac28d18f537245695..fe6161ec55b2d49ef45592bf6fe0f0594b0b10ea
mode 000000,100644..100644
--- /dev/null
@@@ -1,0 -1,36 +1,34 @@@
 -        - '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'