Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
wobqqq committed Apr 19, 2024
1 parent 088c05b commit c81c7a4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
run: composer install --prefer-dist --no-progress

- name: Code debug
run: composer project.debug
run: composer code.debug
18 changes: 14 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"illuminate/database": "^10.38 || ^11",
"october/rain": "^3.6",
"friendsofphp/php-cs-fixer": "^3",
"phpstan/phpstan": "^1.10"
"phpstan/phpstan": "^1.10",
"enlightn/security-checker": "^2.0.0"
},
"autoload": {
"psr-4": {
Expand All @@ -33,9 +34,18 @@
"scripts": {
"code.cs-fixer": "php-cs-fixer --diff fix",
"code.phpstan": "vendor/bin/phpstan analyse --memory-limit=512M",
"project.debug": [
"@code.cs-fixer",
"@code.phpstan"
"code.fix": [
"@code.cs-fixer"
],
"code.analyse": [
"composer validate --strict",
"composer diagnose",
"@code.phpstan",
"security-checker security:check ./composer.lock"
],
"code.debug": [
"@code.fix",
"@code.analyse"
]
}
}

0 comments on commit c81c7a4

Please sign in to comment.