Skip to content

Commit 31e0e07

Browse files
committed
Add E2E test
1 parent 8d0f10e commit 31e0e07

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/examples.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ jobs:
5555
- name: Get result
5656
run: echo "${{steps.script.outputs.result}}"
5757

58+
the-entire-context-can-be-inspected:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: gaggle/elixir_script@v0
62+
id: script
63+
with:
64+
script: |
65+
IO.inspect(context, pretty: true, limit: :infinity, printable_limit: :infinity)
66+
67+
- name: Get result
68+
run: echo "${{steps.script.outputs.result}}"
69+
5870
multiline-scripts-are-possible:
5971
runs-on: ubuntu-latest
6072
steps:

test/e2e_data.exs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
expected:
2525
"[__struct__,action,actor,api_url,event_name,graphql_url,job,payload,ref,run_id,run_number,server_url,sha,workflow]"
2626
},
27+
%{
28+
name: "The entire context can be inspected",
29+
script: "IO.inspect(context, pretty: true, limit: :infinity, printable_limit: :infinity)"
30+
},
2731
%{
2832
name: "Multiline scripts are possible",
2933
script: """

0 commit comments

Comments
 (0)