-
Notifications
You must be signed in to change notification settings - Fork 1
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 #562 from netglue/major-dev-deps
Drop support for PHP 8.1, Upgrade Psalm to v6 & PHPUnit to v11
- Loading branch information
Showing
37 changed files
with
1,025 additions
and
549 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.github export-ignore | ||
/.laminas-ci.json export-ignore | ||
/composer.lock export-ignore | ||
/phpcs.xml export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/psalm.xml export-ignore | ||
/psalm-baseline.xml export-ignore | ||
/test/ export-ignore | ||
/Makefile export-ignore | ||
/renovate.json export-ignore |
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- uses: shivammathur/[email protected] | ||
with: | ||
php-version: 8.1 | ||
php-version: 8.2 | ||
extensions: pcov | ||
coverage: pcov | ||
ini-values: pcov.enabled=1 | ||
|
@@ -41,7 +41,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- uses: shivammathur/[email protected] | ||
with: | ||
php-version: 8.1 | ||
php-version: 8.2 | ||
- uses: "ramsey/[email protected]" | ||
with: | ||
dependency-versions: "highest" | ||
|
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ phpunit.xml | |
.phpunit.cache | ||
.phpunit.result.cache | ||
.php_cs.cache | ||
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,54 @@ | ||
# 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 | ||
|
||
clean: ## Clear out caches | ||
rm -rf .phpunit.cache | ||
rm -f .php_cs-cache | ||
vendor/bin/psalm --clear-cache | ||
|
||
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.