From 65500a8d45bd41721caafb4dd7f53832c8645c44 Mon Sep 17 00:00:00 2001 From: windyboy Date: Fri, 2 Aug 2024 19:45:49 +0800 Subject: [PATCH] refactor: Add task to install ginkgo for testing --- Taskfile.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index c4e140b..2ac44ef 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -61,6 +61,12 @@ tasks: - go get -u -d -v ./... - go mod tidy + install-test: + desc: install ginkgo for testing + cmds: + - echo "Installing ginkgo..." + - go install github.com/onsi/ginkgo/v2/ginkgo + - go get github.com/onsi/gomega/... test: desc: Test the application @@ -116,6 +122,7 @@ tasks: - echo " task run-prod - Run the receiver in production mode" - echo " task run-test - Run the receiver in test mode" - echo " task test - Run tests" + - echo " task install-test - Install ginkgo for testing" - echo " task clean - Clean build artifacts" - echo " task fmt - Format the code" - echo " task deps - Install dependencies"