Skip to content

Commit

Permalink
improve release checks
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer committed Nov 15, 2024
1 parent 379c763 commit 2b841ac
Show file tree
Hide file tree
Showing 6 changed files with 404 additions and 14 deletions.
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
{
"name": "boxblinkracer/phpunuhi",
"version": "1.22.0",
"version": "1.23.0",
"license": "MIT",
"description": "Easy tool to work with translation files for validation, exports, imports and more.",
"homepage": "https://github.com/boxblinkracer/phpunuhi",
"keywords": [
"translation",
"language",
"deepl",
"open-ai",
"openai",
"spell-checker",
"grammar-checker",
"shopware",
"dev"
"developer tools",
"automation",
"localization",
],
"authors": [
{
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ help:
#------------------------------------------------------------------------------------------------

prod: ##1 Installs all prod dependencies
composer validate
composer install --no-dev

dev: ##1 Installs all dev dependencies
composer validate
composer install --ignore-platform-req=ext-intl

clean: ##1 Clears all dependencies
Expand Down Expand Up @@ -110,11 +112,16 @@ svrunit: ##3 Runs all SVRUnit tests

#------------------------------------------------------------------------------------------------

check-release: ##4 Checks if everything is fine to release the provided version
check-release: ##4 Checks if everything is valid to release the provided version
ifndef version
$(error version is not set)
endif
php tests/scripts/check_xsd.php $(version)
@echo ""
@echo "Checking release for version $(version)"
@echo "--------------------------------------------------------"
@php tests/scripts/check_composer_version.php $(version)
@composer validate
@php tests/scripts/check_xsd.php $(version)

artifact: ##4 Create a ZIP file in the build folder
cd .build && zip phpunuhi.zip phpunuhi.phar
Expand Down
Loading

0 comments on commit 2b841ac

Please sign in to comment.