We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a0ff4 commit 6895328Copy full SHA for 6895328
.github/workflows/ci-cd.yml
@@ -4,19 +4,18 @@ on:
4
push:
5
6
jobs:
7
- test:
+ test_return:
8
runs-on: ubuntu-latest
9
steps:
10
- uses: actions/checkout@v3
11
-
12
- - name: Integration test
+ - name: 'Integration test: return'
13
id: output-set
14
uses: ./
15
with:
16
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)}}"
+ "return"
+ - run: |
+ expected="return"
+ output="${{steps.output-set.outputs.result}}"
+ [[ "$output" != "$expected" ]] && echo "::error::❌ Expected '$expected', got '$output'" && exit 1
+ echo "✅ Test passed, outputs.result: ${{toJSON(steps.output-set.outputs.result)}}"
0 commit comments