Skip to content

Commit

Permalink
Move "tooling" scripts to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
holtkamp committed Aug 25, 2020
1 parent 5b51862 commit 2023cd6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run PHP Static Analysis
run: composer phpstan
run: make phpstan

- name: Run PHP Unit Tests
run: composer phpunit
run: make phpunit
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
phpcs:
vendor/bin/php-cs-fixer fix --dry-run --verbose --config .php_cs.php

phpcs-fix:
vendor/bin/php-cs-fixer fix --verbose --config .php_cs.php

phpstan:
vendor/bin/phpstan analyse --level 5 src

phpunit:
vendor/bin/phpunit
14 changes: 0 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,5 @@
"psr-4": {
"Octopus\\Test\\": "tests/"
}
},
"scripts": {
"phpcs": [
"./vendor/bin/php-cs-fixer fix --dry-run --verbose --config .php_cs.php"
],
"phpcs-fix": [
"./vendor/bin/php-cs-fixer fix --verbose --config .php_cs.php"
],
"phpstan": [
"./vendor/bin/phpstan analyse --level 5 src"
],
"phpunit": [
"./vendor/bin/phpunit"
]
}
}

0 comments on commit 2023cd6

Please sign in to comment.