Skip to content

Commit

Permalink
try embed html
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Oct 16, 2022
1 parent 0b55134 commit 16516b6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ plotly()
@test readdir(newdir) == ["sin x.svg"]
@test read(joinpath(dir, "sin x.svg")) == read(joinpath(newdir, "sin x.svg"))

BuildkiteUtils.annotate("""
Success!
$(read(joinpath(dir, "sin x.html"), String))
"""; style="success", context="xtra")

else

@test sort(BuildkiteUtils.artifact_search(step="linux-latest")) == sort(["sin x.html", "sin x.svg", "extra/step.txt"])
Expand All @@ -84,11 +90,6 @@ end
@testset "annotation" begin
if step == "linux-latest"
BuildkiteUtils.annotate("Hello from :linux:\n\n")
BuildkiteUtils.annotate("""
Success!
<a href="artifact://sin x.html"><img src="artifact://sin x.svg" alt="sin(x)" height=250 ></a>
"""; style="success", context="xtra")

elseif step == "linux-v1.6"
BuildkiteUtils.annotate("and from :linux: v1.6\n\n"; append=true)
Expand Down

0 comments on commit 16516b6

Please sign in to comment.