Skip to content

Commit

Permalink
Add test to GoReleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
arbourd committed Apr 3, 2024
1 parent 0d4c252 commit 59d953a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ brews:
description: Opens your webbrowser
homepage: https://github.com/arbourd/git-open

test: |
system "git", "clone", "https://github.com/arbourd/git-open.git"
cd "git-open" do
assert_match "Opening https://github.com/arbourd/git-open",
shell_output("#{bin}/git-open")
assert_match "Opening https://github.com/arbourd/git-open/tree/main/LICENSE",
shell_output("#{bin}/git-open LICENSE")
assert_match "Opening https://github.com/arbourd/git-open/commit/71e081deeb92764e1bae203419ac72de1d935d2f",
shell_output("#{bin}/git-open 71e081deeb92764e1bae203419ac72de1d935d2f")
end
conflicts:
- git-open

Expand Down

0 comments on commit 59d953a

Please sign in to comment.