Skip to content

Commit

Permalink
Check PHP syntax on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Jul 8, 2022
1 parent 34071a1 commit 7231b57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,7 @@ jobs:
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest --ignore-platform-req=php
- name: Execute tests
run: vendor/bin/phpunit
run: composer test

- name: Check .php files for syntax errors
run: composer php:syntax -- --checkstyle | cs2pr
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"league/event": "^2.1"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpunit/phpunit": "^9.5"
},
"autoload": {
Expand All @@ -38,6 +39,7 @@
"illuminate/container": "Hold dependencies to be injected in commands constructors"
},
"scripts": {
"php:syntax": "parallel-lint . --blame --colors --exclude vendor",
"test": "phpunit"
},
"extra": {
Expand Down

0 comments on commit 7231b57

Please sign in to comment.