Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added lint in github actions #493

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading