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

Commit

Permalink
fix: remove defaultRules.yaml before running make test (#955)
Browse files Browse the repository at this point in the history
* fix: remove defaultRules.yaml before running make test

* fix: update comment

Co-authored-by: Roy Hadad <39004075+royhadad@users.noreply.github.com>

---------

Co-authored-by: Roy Hadad <39004075+royhadad@users.noreply.github.com>
  • Loading branch information
hadar-co and royhadad committed Jul 9, 2023
1 parent 38b1f68 commit b6b4338
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit b6b4338

Please sign in to comment.