Skip to content

Commit ed3a934

Browse files
committed
Attempt to let breakage fail if tests fail
1 parent 46130c1 commit ed3a934

File tree

1 file changed

+9
-23
lines changed

1 file changed

+9
-23
lines changed

.github/workflows/Breakage.yml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,12 @@ jobs:
6363
julia -e 'using Pkg;
6464
PKG, TAG, VERSION = ENV["PKG"], ENV["TAG"], ENV["VERSION"]
6565
joburl = joinpath(ENV["GITHUB_SERVER_URL"], ENV["GITHUB_REPOSITORY"], "actions/runs", ENV["GITHUB_RUN_ID"])
66-
open("../pr/$PKG-$VERSION", "w") do io
67-
try
68-
TAG == "no_tag" && error("Not tag for $VERSION")
69-
pkg"activate .";
70-
pkg"instantiate";
71-
pkg"dev ../";
72-
if TAG == "latest"
73-
global TAG = chomp(read(`git rev-parse --short HEAD`, String))
74-
end
75-
pkg"build";
76-
pkg"test";
77-
78-
print(io, "[![](https://img.shields.io/badge/$TAG-Pass-green)]($joburl)");
79-
catch e
80-
@error e;
81-
print(io, "[![](https://img.shields.io/badge/$TAG-Fail-red)]($joburl)");
82-
end;
83-
end'
84-
85-
- uses: actions/upload-artifact@v2
86-
with:
87-
name: pr
88-
path: pr/
66+
TAG == "no_tag" && error("Not tag for $VERSION")
67+
pkg"activate .";
68+
pkg"instantiate";
69+
pkg"dev ../";
70+
if TAG == "latest"
71+
global TAG = chomp(read(`git rev-parse --short HEAD`, String))
72+
end
73+
pkg"build";
74+
pkg"test";'

0 commit comments

Comments
 (0)