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

build: update monorepo makefile targets #34

Merged
merged 1 commit into from
Sep 16, 2024
Merged
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
31 changes: 20 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
.PHONY: test
test: composer-dump composer-validate phpstan psalm phpunit

.PHONY: monorepo
monorepo: validate merge

.PHONY: merge
merge:
vendor/bin/monorepo-builder merge

.PHONY: validate
validate:
vendor/bin/monorepo-builder validate

.PHONY: phpstan
phpstan:
vendor/bin/phpstan analyse
Expand Down Expand Up @@ -45,3 +34,23 @@ tools/php-cs-fixer:
rector:
$(PHP) vendor/bin/rector process > rector.log
make php-cs-fixer

.PHONY: monorepo
monorepo: monorepo-validate monorepo-merge

.PHONY: monorepo-validate
monorepo-validate:
vendor/bin/monorepo-builder validate

.PHONY: monorepo-merge
monorepo-merge:
$(PHP) vendor/bin/monorepo-builder merge

.PHONY: monorepo-release-%
monorepo-release-%:
git update-index --really-refresh > /dev/null; git diff-index --quiet HEAD || (echo "Working directory is not clean, aborting" && exit 1)
[ $$(git branch --show-current) == main ] || (echo "Not on main branch, aborting" && exit 1)
$(PHP) vendor/bin/monorepo-builder release $*
git switch -c release/$*
git add .
git commit -m "release: $*"
Loading