Skip to content
This repository was 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 all commits
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 in the project's defaultRules.yaml, we want to ensure our new logic is used when running "make test"
# if we don't delete `defaultRules.yaml`, the tests will use the old logic
rm -f ~/.datree/defaultRules.yaml
go test ./...

create-bin:
Expand Down