Skip to content

Commit

Permalink
add a version test
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoffman committed Feb 18, 2025
1 parent 2f3fdc6 commit a8d54b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dependabot/dependabot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

func TestDependabot(t *testing.T) {
err := exec.Command("go", "build", "dependabot.go").Run()
err := exec.Command("go", "build", ".").Run()
if err != nil {
t.Fatal("failed to build dependabot")
}
Expand Down
5 changes: 5 additions & 0 deletions testdata/scripts/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Run the dependabot command
dependabot --version

# example: dependabot version v1.57.1-0.20250218140044-2f3fdc69ebfd
stdout 'dependabot version v1.\d+.\d+-0.\d{14}-[a-f0-9]{12}'

0 comments on commit a8d54b3

Please sign in to comment.