From 2021d1747871963154a76fad3b5072fb99534b05 Mon Sep 17 00:00:00 2001 From: AsifNawaz-cnic Date: Tue, 13 Aug 2024 15:27:30 +0100 Subject: [PATCH] ci(go-sdk-test): reviewed test workflow to capture tests status and added missing credentials for testing --- .github/workflows/go-sdk-test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-sdk-test.yml b/.github/workflows/go-sdk-test.yml index 306ae56..62bf490 100644 --- a/.github/workflows/go-sdk-test.yml +++ b/.github/workflows/go-sdk-test.yml @@ -51,8 +51,13 @@ jobs: check-latest: true - name: Run build run: go build . - - name: Run test - run: ./scripts/test-go.sh + - name: Running automated tests + env: + CNR_TEST_USER: ${{ secrets.CNR_TEST_USER }} + CNR_TEST_PASSWORD: ${{ secrets.CNR_TEST_PASSWORD }} + run: | + go test -v -race -coverprofile=coverage.out ./... + go tool cover -html=coverage.out -o coverage.html dependabot: needs: