-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from netglue/major-dev-deps
Drop PHP 8.1, Upgrade Psalm to v6 & PHPUnit to v11
- Loading branch information
Showing
8 changed files
with
812 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/vendor/ | ||
phpunit.xml | ||
rector.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Run `make` (no arguments) to get a short description of what is available | ||
# within this `Makefile`. | ||
|
||
help: ## shows this help | ||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_\-\.]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | ||
.PHONY: help | ||
|
||
install: ## Install PHP dependencies | ||
composer install | ||
.PHONY: install | ||
|
||
update: ## Update PHP dependencies | ||
composer update | ||
.PHONY: update | ||
|
||
bump: ## Update PHP dependencies | ||
composer update | ||
composer bump -D | ||
composer update | ||
.PHONY: update | ||
|
||
sa: ## Run static analysis checks | ||
vendor/bin/psalm --no-cache --threads=1 | ||
.PHONY: sa | ||
|
||
cs: ## Run coding standards checks | ||
vendor/bin/phpcs | ||
.PHONY: cs | ||
|
||
test: ## Run unit tests | ||
vendor/bin/phpunit | ||
.PHONY: test | ||
|
||
qa: cs sa test ## Run all QA Checks | ||
.PHONY: check | ||
|
||
get-rector: ## Install rector as a dev dependency | ||
ifeq (,$(wildcard ./vendor/bin/rector)) | ||
composer require --dev rector/rector | ||
endif | ||
.PHONY: get-rector | ||
|
||
remove-rector: ## Remove rector dependency | ||
composer remove --dev rector/rector | ||
.PHONY: remove-rector | ||
|
||
rector: get-rector ## Run Rector | ||
vendor/bin/rector | ||
.PHONY: rector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.