Skip to content

Commit 8195562

Browse files
committed
added test case 3
1 parent 3bce7c0 commit 8195562

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,12 @@ jobs:
5151
script: |
5252
console.log("Expect error: script does not return string.");
5353
54-
- name: Capture output
55-
run: |
56-
# This step uses `run` to execute a shell command
57-
./action.sh > test_no_return.log 2>&1 || true
58-
cat test_no_return.log
59-
60-
- name: Verify Test Case 2 output
61-
run: |
62-
if grep -q "💡 Hint: Your script returned a non-string value (e.g., object, array, or undefined) — or nothing at all." test_no_return.log; then
63-
echo "✅ Output contains the expected hint."
64-
else
65-
echo "❌ Output does NOT contain the expected hint."
66-
exit 1
67-
fi
54+
- name: Test Case 3 - Composite Action - Return Non-String
55+
uses: ./
56+
id: test-return-non-string
57+
continue-on-error: true
58+
with:
59+
label: "Self-Test-Return-Non-String"
60+
script: |
61+
console.log("Expect error: script returns non-string.");
62+
return {title: "Test Case 3", message: "test case return non-string", score: 50};

0 commit comments

Comments
 (0)