1
0
Fork 0
composer/.github/workflows/lint.yml

39 lines
729 B
YAML

name: "PHP Lint"
on:
push:
paths-ignore:
- '.github/**'
- 'doc/**'
pull_request:
paths-ignore:
- '.github/**'
- 'doc/**'
jobs:
tests:
name: "Lint"
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "5.3"
- "7.4"
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"
run: "find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l -f"