Skip to content

Commit

Permalink
Added lint in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and shish committed Dec 2, 2024
1 parent 822cdae commit eae3d67
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ jobs:
- name: "Run coding standard checks with squizlabs/php_codesniffer in generator/ directory"
run: "composer cs-check"
working-directory: "generator"
- name: "lint generator/ directory"
run: "composer lint"
working-directory: "generator"
- name: "Run static code analysis with phpstan/phpstan in generator/ directory"
run: "composer phpstan"
working-directory: "generator"
Expand Down Expand Up @@ -125,6 +128,8 @@ jobs:
run: "composer dump-autoload"
- name: "Run coding standard checks with squizlabs/php_codesniffer in root directory"
run: "composer cs-check"
- name: "lint in root directory"
run: "composer lint"
- name: "Run static code analysis with phpstan/phpstan in root directory"
run: "composer phpstan"

Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@
"phpstan/phpstan": "^1",
"thecodingmachine/phpstan-strict-rules": "^1.0",
"squizlabs/php_codesniffer": "^3.2",
"phpunit/phpunit": "^10"
"phpunit/phpunit": "^10",
"php-parallel-lint/php-parallel-lint": "^1.4"
},
"scripts": {
"lint": "parallel-lint deprecated/ lib/ tests/",
"test": "phpunit",
"phpstan": "phpstan analyse",
"cs-fix": "phpcbf",
Expand Down
6 changes: 4 additions & 2 deletions generator/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
"thecodingmachine/phpstan-strict-rules": "^1.0",
"squizlabs/php_codesniffer": "^3.2",
"php-coveralls/php-coveralls": "^2.1",
"phpstan/phpstan": "^1"
"phpstan/phpstan": "^1",
"php-parallel-lint/php-parallel-lint": "^1.4"
},
"scripts": {
"test": "vendor/bin/phpunit",
"lint": "parallel-lint config/ src/ tests/",
"test": "phpunit",
"phpstan": "phpstan analyse",
"cs-fix": "phpcbf",
"cs-check": "phpcs"
Expand Down
76 changes: 70 additions & 6 deletions generator/composer.lock

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

0 comments on commit eae3d67

Please sign in to comment.