Skip to content
Merged
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ jobs:

-
uses: "danharrin/monorepo-split-github-action@v2.4.5"
if: "startsWith(github.ref, 'refs/tags/')"
# ↓ skills marketplace is only published on stable releases (tag has no '-' pre-release suffix)
if: "startsWith(github.ref, 'refs/tags/') && !(matrix.package.name == 'skills' && contains(github.ref_name, '-'))"
with:
tag: ${GITHUB_REF#refs/tags/}

Expand All @@ -200,6 +201,8 @@ jobs:
tweet:
runs-on: ubuntu-latest
needs: discord-notification
# ↓ only announce stable releases (tag has no '-' pre-release suffix)
if: "!contains(github.ref_name, '-')"
steps:
- uses: Eomm/why-don-t-you-tweet@v1
with:
Expand All @@ -214,6 +217,8 @@ jobs:
discord-notification:
runs-on: ubuntu-latest
needs: split_packages
# ↓ only announce stable releases (tag has no '-' pre-release suffix)
if: "!contains(github.ref_name, '-')"
steps:
- uses: actions/checkout@v4
with:
Expand Down
34 changes: 34 additions & 0 deletions bin/update-required-packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,38 @@
}

file_put_contents($composerFile, json_encode($composer, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));
}

// Quickstart examples directly require some local packages (see bin/get-packages) so their tests
// resolve them from the path repository instead of Packagist; keep those requirements pinned to
// "~$version" in sync with whatever gets released, same as the sibling package requires above.
$quickstartDirectory = realpath(__DIR__ . '/../quickstart-examples');
$iterator = new RecursiveIteratorIterator(
new RecursiveCallbackFilterIterator(
new RecursiveDirectoryIterator($quickstartDirectory, RecursiveDirectoryIterator::SKIP_DOTS),
fn ($current) => $current->getFilename() !== 'vendor'
)
);

foreach ($iterator as $file) {
if ($file->getFilename() !== 'composer.json') {
continue;
}

$path = $file->getPathname();
$composer = json_decode(file_get_contents($path), true);
$touched = false;

foreach (['require', 'require-dev'] as $section) {
foreach ($composer[$section] ?? [] as $requiredPackage => $requiredVersion) {
if (in_array($requiredPackage, $packageNames)) {
$composer[$section][$requiredPackage] = '~' . $version;
$touched = true;
}
}
}

if ($touched) {
file_put_contents($path, json_encode($composer, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES) . "\n");
}
}
5 changes: 4 additions & 1 deletion quickstart-examples/Asynchronous/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
}
},
"require": {
"ecotone/lite-amqp-starter": "^1.0.1"
"ecotone/amqp": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-amqp-starter": "^1.0.1",
"ecotone/lite-application": "~1.326.1"
},
"require-dev": {
"phpunit/phpunit": "^9.6|^10.5|^11.0"
Expand Down
5 changes: 4 additions & 1 deletion quickstart-examples/AuthoritativeClassmap/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
]
},
"require": {
"ecotone/lite-amqp-starter": "^1.0.1"
"ecotone/amqp": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-amqp-starter": "^1.0.1",
"ecotone/lite-application": "~1.326.1"
},
"require-dev": {
"phpunit/phpunit": "^9.6|^10.5|^11.0"
Expand Down
3 changes: 3 additions & 0 deletions quickstart-examples/BuildingBlocks/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
},
"require": {
"beberlei/assert": "^3.3.2",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-application-starter": "^1.0.1",
"ecotone/lite-event-sourcing-starter": "^1.0",
"ecotone/pdo-event-sourcing": "~1.326.1",
"moneyphp/money": "^4.1.0",
"ramsey/uuid": "^4.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-dbal-starter": "^1.0.1",
"ramsey/uuid": "^4.0"
},
Expand Down
3 changes: 3 additions & 0 deletions quickstart-examples/BusinessInterface/Routing/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-dbal-starter": "^1.0.1",
"ramsey/uuid": "^4.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-dbal-starter": "^1.0.1",
"ramsey/uuid": "^4.0"
},
Expand Down
2 changes: 2 additions & 0 deletions quickstart-examples/CQRS/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
}
},
"require": {
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-application-starter": "^1.0.1"
},
"require-dev": {
Expand Down
4 changes: 4 additions & 0 deletions quickstart-examples/ConsoleCommand/Laravel/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/laravel": "~1.326.1",
"ecotone/laravel-starter": "^1.1.0",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-dbal-starter": "^1.0.1",
"laravel/laravel": "^12.0"
},
Expand Down
3 changes: 3 additions & 0 deletions quickstart-examples/ConsoleCommand/Symfony/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/symfony-bundle": "~1.326.1",
"ecotone/symfony-starter": "^1.1.0",
"symfony/orm-pack": "^2.4",
"symfony/yaml": "^6.4|^7.0|^8.0"
Expand Down
2 changes: 2 additions & 0 deletions quickstart-examples/Conversion/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
}
},
"require": {
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-application-starter": "^1.0.1",
"ramsey/uuid": "^4.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
}
},
"require": {
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-event-sourcing-starter": "^1.0",
"ecotone/pdo-event-sourcing": "~1.326.1",
"ramsey/uuid": "^4.0"
},
"require-dev": {
Expand Down
4 changes: 4 additions & 0 deletions quickstart-examples/ErrorHandling/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
}
},
"require": {
"ecotone/amqp": "~1.326.1",
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-amqp-starter": "^1.0.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-dbal-starter": "^1.0.1",
"ramsey/uuid": "^4.0"
},
Expand Down
2 changes: 2 additions & 0 deletions quickstart-examples/EventHandling/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
}
},
"require": {
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-application-starter": "^1.0.1"
},
"require-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-event-sourcing-starter": "^1.0",
"ecotone/dbal": "^1.0",
"ecotone/pdo-event-sourcing": "~1.326.1",
"ramsey/uuid": "^4.0"
},
"require-dev": {
Expand Down
5 changes: 4 additions & 1 deletion quickstart-examples/EventSourcing/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
}
},
"require": {
"ecotone/lite-event-sourcing-starter": "^1.0"
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-event-sourcing-starter": "^1.0",
"ecotone/pdo-event-sourcing": "~1.326.1"
},
"require-dev": {
"phpunit/phpunit": "^9.6|^10.5|^11.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/laravel": "~1.326.1",
"ecotone/laravel-starter": "^1.1.0",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-event-sourcing-starter": "^1.0",
"ecotone/pdo-event-sourcing": "~1.326.1",
"laravel/laravel": "^10.0",
"ramsey/uuid": "^4.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/laravel": "~1.326.1",
"ecotone/laravel-starter": "^1.1.0",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-event-sourcing-starter": "^1.0",
"ecotone/pdo-event-sourcing": "~1.326.1",
"laravel/laravel": "^10.0",
"ramsey/uuid": "^4.0",
"symfony/expression-language": "^8.0"
Expand Down
3 changes: 3 additions & 0 deletions quickstart-examples/MessageBroker/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
}
],
"require": {
"ecotone/amqp": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-amqp-starter": "^1.0.1",
"ecotone/lite-application": "~1.326.1",
"ramsey/uuid": "^4.0"
},
"require-dev": {
Expand Down
5 changes: 4 additions & 1 deletion quickstart-examples/Microservices/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
}
},
"require": {
"ecotone/lite-amqp-starter": "^1.0.1"
"ecotone/amqp": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-amqp-starter": "^1.0.1",
"ecotone/lite-application": "~1.326.1"
},
"require-dev": {
"phpunit/phpunit": "^9.6|^10.5|^11.0"
Expand Down
4 changes: 4 additions & 0 deletions quickstart-examples/MicroservicesAdvanced/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@
}
},
"require": {
"ecotone/amqp": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-amqp-starter": "^1.0.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-event-sourcing-starter": "^1.0",
"ecotone/pdo-event-sourcing": "~1.326.1",
"ramsey/uuid": "^4.0"
},
"require-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"require": {
"doctrine/orm": "^3.3",
"doctrine/persistence": "^4.0",
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-dbal-starter": "^1.0.1"
},
"require-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
},
"require": {
"doctrine/orm": "^3.3",
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-dbal-starter": "^1.0.1"
},
"require-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/laravel": "~1.326.1",
"ecotone/laravel-starter": "^1.1.0",
"laravel/laravel": "^10.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/laravel": "~1.326.1",
"ecotone/laravel-starter": "^1.1.0",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-dbal-starter": "^1.0.1",
"laravel/laravel": "^10.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/laravel": "~1.326.1",
"ecotone/laravel-starter": "^1.1.0",
"ecotone/lite-application": "~1.326.1",
"ecotone/lite-event-sourcing-starter": "^1.0",
"ecotone/pdo-event-sourcing": "~1.326.1",
"laravel/laravel": "^10.0",
"ramsey/uuid": "^4.0"
},
Expand Down
3 changes: 3 additions & 0 deletions quickstart-examples/MultiTenant/Laravel/Events/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/laravel": "~1.326.1",
"ecotone/laravel-starter": "^1.1.0",
"laravel/laravel": "^10.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/laravel": "~1.326.1",
"ecotone/laravel-starter": "^1.1.0",
"laravel/laravel": "^10.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/symfony-bundle": "~1.326.1",
"ecotone/symfony-starter": "^1.1.0",
"symfony/expression-language": "^6.4|^7.0|^8.0",
"symfony/framework-bundle": "^6.4|^7.0|^8.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
}
},
"require": {
"ecotone/dbal": "~1.326.1",
"ecotone/jms-converter": "~1.326.1",
"ecotone/symfony-bundle": "~1.326.1",
"ecotone/symfony-starter": "^1.1.0",
"symfony/expression-language": "^6.4|^7.0|^8.0",
"symfony/framework-bundle": "^6.4|^7.0|^8.0",
Expand Down
Loading
Loading