diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c945ec9b..7f115a76 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -105,11 +105,9 @@ jobs: fi echo "java_latest=$java_latest" >> "$GITHUB_OUTPUT" + # Temporary: harness/php/composer.json pins the SDK to a branch, so an + # empty version keeps that pin. Restore the lookup once the SDK ships. php_latest="$INPUT_PHP_SDK_VERSION" - if [ -z "$php_latest" ]; then - php_latest=$(./temporal-features latest-sdk-version --lang php) - echo "Derived latest PHP SDK release version: $php_latest" - fi echo "php_latest=$php_latest" >> "$GITHUB_OUTPUT" python_latest="$INPUT_PYTHON_SDK_VERSION" @@ -374,7 +372,7 @@ jobs: go-ver: 'v${{ needs.build-go.outputs.go_latest }}' ts-ver: 'v${{ needs.build-go.outputs.typescript_latest }}' java-ver: 'v${{ needs.build-go.outputs.java_latest }}' - php-ver: 'v${{ needs.build-go.outputs.php_latest }}' + php-ver: ${{ needs.build-go.outputs.php_latest && format('v{0}', needs.build-go.outputs.php_latest) || '' }} py-ver: 'v${{ needs.build-go.outputs.python_latest }}' cs-ver: 'v${{ needs.build-go.outputs.csharp_latest }}' rb-ver: 'v${{ needs.build-go.outputs.ruby_latest }}' diff --git a/features/activity/standalone/feature.php b/features/activity/standalone/feature.php new file mode 100644 index 00000000..1e00daf9 --- /dev/null +++ b/features/activity/standalone/feature.php @@ -0,0 +1,55 @@ +withNamespace($runtime->namespace), + ); + + $handle = $client->start( + 'echo', + StartActivityOptions::new() + ->withId(Uuid::uuid4()->toString()) + ->withTaskQueue($feature->taskQueue) + ->withStartToCloseTimeout('1 minute'), + 'hello', + ); + + Assert::same($handle->getResult('string'), 'hello'); + Assert::same($handle->describe()->info->status, ActivityExecutionStatus::Completed); + } +} diff --git a/harness/php/composer.json b/harness/php/composer.json index f2ddb5a7..a2303c20 100644 --- a/harness/php/composer.json +++ b/harness/php/composer.json @@ -9,7 +9,7 @@ "buggregator/trap": "^1.9", "spiral/core": "^3.13", "symfony/process": ">=6.4", - "temporal/sdk": "^2.16.0", + "temporal/sdk": "dev-feature/standalone-activities as 2.21.0", "webmozart/assert": "^1.11" }, "autoload": { @@ -21,5 +21,11 @@ "rr-get": "rr get" }, "prefer-stable": true, - "minimum-stability": "dev" + "minimum-stability": "dev", + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/temporalio/sdk-php" + } + ] }