Skip to content

Commit 59d953a

Browse files
committed
Add test to GoReleaser config
1 parent 0d4c252 commit 59d953a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.goreleaser.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ brews:
2323
description: Opens your webbrowser
2424
homepage: https://github.com/arbourd/git-open
2525

26+
test: |
27+
system "git", "clone", "https://github.com/arbourd/git-open.git"
28+
29+
cd "git-open" do
30+
assert_match "Opening https://github.com/arbourd/git-open",
31+
shell_output("#{bin}/git-open")
32+
assert_match "Opening https://github.com/arbourd/git-open/tree/main/LICENSE",
33+
shell_output("#{bin}/git-open LICENSE")
34+
assert_match "Opening https://github.com/arbourd/git-open/commit/71e081deeb92764e1bae203419ac72de1d935d2f",
35+
shell_output("#{bin}/git-open 71e081deeb92764e1bae203419ac72de1d935d2f")
36+
end
37+
2638
conflicts:
2739
- git-open
2840

0 commit comments

Comments
 (0)