Skip to content

Commit

Permalink
use php parallel lint
Browse files Browse the repository at this point in the history
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
  • Loading branch information
kyteinsky committed Feb 1, 2024
1 parent a12052f commit 868b4b0
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lint-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Composer setup
working-directory: apps/${{ env.APP_NAME }}
run: composer i

- name: Lint
run: composer run lint

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
"roave/security-advisories": "dev-latest",
"phpunit/phpunit": "^9.6",
"psalm/phar": "^5.15",
"friendsofphp/php-cs-fixer": "3.38"
"friendsofphp/php-cs-fixer": "3.38",
"php-parallel-lint/php-parallel-lint": "^1.3"
},
"scripts": {
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
"lint": "parallel-lint --exclude vendor .",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"psalm": "psalm.phar --threads=1",
Expand Down
59 changes: 58 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 868b4b0

Please sign in to comment.