Merge pull request #34 from nextcloud/chore/release/v1.3.0 #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: | |
- master | |
- stable* | |
pull_request: | |
jobs: | |
lint-php: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: composer install --prefer-dist | |
- name: Load problem matcher for php -l | |
uses: korelstar/phplint-problem-matcher@v1 | |
- name: PHP syntax check | |
run: "find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l -f" | |
- name: PHP Coding Standards Fixer | |
run: vendor/bin/php-cs-fixer fix --dry-run --diff |