From 5fa08fc678e092eb4da0a1ffaa611d14c1c53ef8 Mon Sep 17 00:00:00 2001 From: dan13ram Date: Mon, 24 Jun 2024 19:53:18 +0530 Subject: [PATCH] fixed workflow --- .github/workflows/test.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 17bee39..361b933 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,6 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: '^1.22.3' @@ -26,6 +27,7 @@ jobs: with: path: | ~/.cache/go-build + ~/go/pkg/mod /go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | @@ -47,21 +49,22 @@ jobs: - name: Run Static Code Analysis run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && golangci-lint run - + - name: Run Unit Tests run: bash coverage.sh - - name: Upload Test Coverage - uses: actions/upload-artifact@v3 - with: - name: coverage-report - path: coverage.out - - name: Build run: go build -o wpokt-oracle . - - name: Upload Build Artifact - uses: actions/upload-artifact@v3 - with: - name: wpokt-oracle - path: wpokt-oracle + # - name: Upload Test Coverage + # uses: actions/upload-artifact@v3 + # with: + # name: coverage-report + # path: coverage.out + # + # - name: Upload Build Artifact + # uses: actions/upload-artifact@v3 + # with: + # name: wpokt-oracle + # path: wpokt-oracle + #