Skip to content

Commit 1ffaa87

Browse files
committed
ci: add required YMIR_FUNCTION_TYPE environment variable to test script
1 parent 7b57af1 commit 1ffaa87

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

runtime/test-image.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ done
4444
ENTRY_POINT_LOG=$(docker run --rm --platform "$PLATFORM" \
4545
-e AWS_LAMBDA_RUNTIME_API="localhost" \
4646
-e AWS_REGION="us-east-1" \
47+
-e YMIR_FUNCTION_TYPE="console" \
4748
-e LAMBDA_TASK_ROOT="/var/task" \
4849
--entrypoint /opt/ymir/bin/php "$IMAGE" /opt/runtime.php 2>&1 | head -n 20 || true)
4950

50-
if echo "$ENTRY_POINT_LOG" | grep -q "Loaded runtime Composer autoload file"; then
51+
if echo "$ENTRY_POINT_LOG" | grep -Eq "Loaded runtime Composer autoload file|Ymir PHP Runtime \(console\) initialized"; then
5152
echo " [OK] Runtime entry point loadable"
5253
else
5354
echo " [FAIL] Runtime entry point failed to boot"

0 commit comments

Comments
 (0)