Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

fix: remove defaultRules.yaml before running make test #955

Merged
merged 2 commits into from
Jul 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ build-windows-amd:
GOOS=windows GOARCH=amd64 go build -tags $(or $(datree_build_env),staging) -ldflags="-X github.com/datreeio/datree/cmd.CliVersion=1.0.0"

test:
# when changing rule logic and/or tests, we want to ensure our new logic is used when running "make test"
hadar-co marked this conversation as resolved.
Show resolved Hide resolved
# if we don't delete `defaultRules.yaml`, the tests will use the old logic
rm -f ~/.datree/defaultRules.yaml
hadar-co marked this conversation as resolved.
Show resolved Hide resolved
go test ./...

create-bin:
Expand Down
Loading