From bbe02dec47c46d61b30836303768280cd7d36873 Mon Sep 17 00:00:00 2001 From: Piyush Jain <122745947+d3vb0ox@users.noreply.github.com> Date: Thu, 1 Aug 2024 14:42:53 +0530 Subject: [PATCH] fix: add actions to test --- .github/workflows/build.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59e7880..0c2985b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,19 +15,13 @@ jobs: with: go-version: '1.22' - - name: Test + - name: Compile run: | cd collector go build -v ./... - go test -v ./... - - name: prepare binary + - name: Test run: | cd collector - go build cmd/collector/database-collector.go + go test -v ./... - - name: upload binary - uses: actions/upload-artifact@v4 - with: - name: database-collector - path: collector/database-collector