mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-31 08:45:35 +02:00
38 lines
941 B
YAML
38 lines
941 B
YAML
name: "PHP Lint"
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
tests:
|
|
name: "Lint"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
php-version:
|
|
- "5.3"
|
|
- "8.0"
|
|
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: "actions/checkout@v2"
|
|
|
|
- name: "Install PHP"
|
|
uses: "shivammathur/setup-php@v2"
|
|
with:
|
|
coverage: "none"
|
|
extensions: "intl"
|
|
ini-values: "memory_limit=-1"
|
|
php-version: "${{ matrix.php-version }}"
|
|
|
|
- name: "Lint PHP files on 5.3"
|
|
if: "matrix.php-version == '5.3'"
|
|
run: "find src/ -type f -name '*.php' -not -name '*Trait.php' -not -name 'FormattableHandlerInterface.php' -not -name 'ProcessableHandlerInterface.php' -print0 | xargs -0 -L1 -P4 -- php -l -f"
|
|
|
|
- name: "Lint PHP files"
|
|
if: "matrix.php-version != '5.3'"
|
|
run: "find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l -f"
|