2020-04-22 07:27:58 +00:00
|
|
|
name: "PHP Lint"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
|
|
|
|
2022-06-10 00:30:11 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-04-22 07:27:58 +00:00
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
name: "Lint"
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
php-version:
|
|
|
|
- "5.3"
|
2021-06-21 19:05:19 +00:00
|
|
|
- "latest"
|
2020-04-22 07:27:58 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
2022-03-05 18:17:37 +00:00
|
|
|
uses: "actions/checkout@v3"
|
2020-04-22 07:27:58 +00:00
|
|
|
|
|
|
|
- name: "Install PHP"
|
|
|
|
uses: "shivammathur/setup-php@v2"
|
|
|
|
with:
|
|
|
|
coverage: "none"
|
|
|
|
extensions: "intl"
|
2021-06-21 19:01:08 +00:00
|
|
|
ini-values: "memory_limit=-1, error_reporting=E_ALL, display_errors=On"
|
2020-04-22 07:27:58 +00:00
|
|
|
php-version: "${{ matrix.php-version }}"
|
|
|
|
|
|
|
|
- name: "Lint PHP files"
|
|
|
|
run: "find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l -f"
|