Skip to content

Commit

Permalink
test: clean the testdata before running the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 15, 2023
1 parent 9f833b4 commit a8aff46
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a8aff46

Please sign in to comment.