From 47699f8ab189f1dc157916264e6c7a967d5c6062 Mon Sep 17 00:00:00 2001 From: Blake Bender Date: Thu, 14 Jan 2021 13:18:02 -0800 Subject: [PATCH] Integrate rat-check properly into GitHub PR apparatus --- ci/pr/pipeline.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ci/pr/pipeline.yml b/ci/pr/pipeline.yml index 5b8c3f6933..c578623618 100644 --- a/ci/pr/pipeline.yml +++ b/ci/pr/pipeline.yml @@ -111,6 +111,7 @@ jobs: #@overlay/append - #@ pr_status("clang-format", "pending") - #@ pr_status("clang-tidy", "pending") + - #@ pr_status("rat-check", "pending") #@overlay/match by=overlay.index(1) - in_parallel: steps: @@ -156,3 +157,24 @@ jobs: steps: #@overlay/append - #@ pr_status("clang-format", "success") + - #@overlay/match by=overlay.subset({"task": "rat-check"}) + on_error: + in_parallel: + steps: + #@overlay/append + - #@ pr_status("rat-check", "error") + on_abort: + in_parallel: + steps: + #@overlay/appendxs + - #@ pr_status("rat-check", "error", "Build canceled") + on_failure: + in_parallel: + steps: + #@overlay/append + - #@ pr_status("rat-check", "failure") + on_success: + in_parallel: + steps: + #@overlay/append + - #@ pr_status("rat-check", "success")