-
Notifications
You must be signed in to change notification settings - Fork 144
39 lines (36 loc) · 923 Bytes
/
php.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: PHP
on:
push:
branches:
- "5.2"
- "5.3"
- "5.4"
- "5.5"
- master
pull_request:
permissions:
contents: read
jobs:
syntax:
name: "Check Syntax (${{ matrix.php }})"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- uses: actions/checkout@v4
- run: echo "::add-matcher::.github/php-syntax.json"
- name: Remove files to be ignored
run: |
rm wcfsetup/install/files/lib/system/api/symfony/polyfill-mbstring/bootstrap80.php
rm wcfsetup/install/files/lib/system/api/symfony/polyfill-php73/Resources/stubs/JsonException.php
- run: |
! find . -type f -name '*.php' -exec php -l '{}' \; 2>&1 |grep -v '^No syntax errors detected'