From a8aff463ade84ef236d05ccfab8ca74d3e4e873e Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 15 Nov 2023 04:05:27 -0800 Subject: [PATCH] test: clean the testdata before running the tests --- Taskfile.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index c2702b76a2..bb82cc9211 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -60,6 +60,12 @@ tasks: cmds: - rm -rf dist/ - rm -rf tmp/ + deps: [clean:test] + + clean:test: + desc: Cleans test temp files and folders + cmds: + - git clean -fdX -q -d testdata/ lint: desc: Runs golangci-lint @@ -97,7 +103,7 @@ tasks: test: desc: Runs test suite aliases: [t] - deps: [install] + deps: [install, clean:test] cmds: - go test {{catLines .GO_PACKAGES}} vars: