Skip to content

Commit

Permalink
Use specific go build flag for acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joanlopez committed Nov 10, 2024
1 parent e149c49 commit 347d023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ build:
go build -ldflags "-s -w -X 'github.com/friendsofgo/killgrave/internal/app/cmd._version=`git rev-parse --abbrev-ref HEAD`-`git rev-parse --short HEAD`'" -o bin/killgrave cmd/killgrave/main.go

acceptance: build
@(cd acceptance && go test -count=1 -v ./...)
@(cd acceptance && go test -count=1 -tags=acceptance -v ./...)
2 changes: 2 additions & 0 deletions acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build acceptance

package acceptance

import (
Expand Down

0 comments on commit 347d023

Please sign in to comment.