Skip to content

Commit 8034478

Browse files
committed
Simplify e2e_data.exs with multiline strings
1 parent 95054bf commit 8034478

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/e2e_data.exs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,21 @@
1111
},
1212
%{
1313
name: "IO is visible in logs",
14-
script: "IO.puts(\"Hello world\")"
14+
script: """
15+
IO.puts("Hello world")
16+
"""
1517
},
1618
%{
1719
name: "Event context is available",
1820
script: "Map.keys(context) |> Enum.sort",
1921
expected:
2022
"[__struct__,action,actor,api_url,event_name,graphql_url,job,payload,ref,run_id,run_number,server_url,sha,workflow]"
23+
},
24+
%{
25+
name: "Multiline scripts are possible",
26+
script: """
27+
IO.puts("Hello world")
28+
"result"
29+
"""
2130
}
2231
]

0 commit comments

Comments
 (0)