Skip to content

Commit 7c48901

Browse files
stevehchenrui333
authored andcommitted
runitor v1.3.0-build.4 (new formula)
runitor: add livecheck and autobump Signed-off-by: Rui Chen <[email protected]>
1 parent 75c7b9f commit 7c48901

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,6 +2712,7 @@ ruff
27122712
ruff-lsp
27132713
rune
27142714
runit
2715+
runitor
27152716
rure
27162717
rush
27172718
rush-parallel

Formula/r/runitor.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
class Runitor < Formula
2+
desc "Command runner with healthchecks.io integration"
3+
homepage "https://github.com/bdd/runitor"
4+
url "https://github.com/bdd/runitor/archive/refs/tags/v1.3.0.tar.gz"
5+
sha256 "d654d4fb55b2adee445d2160ec937529f9a052220554a46874a8a5c64c52be06"
6+
license "0BSD"
7+
head "https://github.com/bdd/runitor.git", branch: "main"
8+
9+
livecheck do
10+
url :stable
11+
regex(/^v?(\d+(?:\.\d+)+)$/i)
12+
end
13+
14+
depends_on "go" => :build
15+
16+
def install
17+
system "go", "build", *std_go_args(ldflags: "-s -w -X main.Version=#{version}"), "./cmd/runitor"
18+
end
19+
20+
test do
21+
output = shell_output("#{bin}/runitor -uuid 00000000-0000-0000-0000-000000000000 true 2>&1")
22+
assert_match "error response: 400 Bad Request", output
23+
assert_equal "runitor #{version}", shell_output("#{bin}/runitor -version").strip
24+
end
25+
end

0 commit comments

Comments
 (0)