Skip to content

Commit 6895328

Browse files
committed
Add integration test
1 parent 55a0ff4 commit 6895328

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/ci-cd.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@ on:
44
push:
55

66
jobs:
7-
test:
7+
test_return:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
11-
12-
- name: Integration test
11+
- name: 'Integration test: return'
1312
id: output-set
1413
uses: ./
1514
with:
1615
script: |
17-
IO.puts("hello world")
18-
"return value"
19-
20-
- name: Showing the output
21-
run: |
22-
echo "outputs.result: ${{toJSON(steps.output-set.outputs.result)}}"
16+
"return"
17+
- run: |
18+
expected="return"
19+
output="${{steps.output-set.outputs.result}}"
20+
[[ "$output" != "$expected" ]] && echo "::error::❌ Expected '$expected', got '$output'" && exit 1
21+
echo "✅ Test passed, outputs.result: ${{toJSON(steps.output-set.outputs.result)}}"

0 commit comments

Comments
 (0)