From cca9f73c89c4ce29f4d50d937f23b567dd382262 Mon Sep 17 00:00:00 2001 From: Meha Bhalodiya Date: Thu, 26 Oct 2023 17:06:08 +0530 Subject: [PATCH] remove token --- .github/workflows/pr-checks.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index db65d8fd7..a172fea82 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -35,14 +35,23 @@ jobs: - name: Checkout Git Repository uses: actions/checkout@v3 - - name: Unit Tests with Code Coverage + - name: Run Go Tests + run: make test + + - name: Check format run: | - make test + if [[ $(go fmt `go list ./... | grep -v vendor`) ]]; then + echo "not well formatted sources are found" + exit 1 + fi - - name: Upload Code Coverage Report - uses: codecov/codecov-action@v3 + - name: Generate coverage report + run: | + go test `go list ./... | grep -v examples` -coverprofile=coverage.txt -covermode=atomic + + - name: Upload coverage report + uses: codecov/codecov-action@v1 with: - token: ${{ secrets.CODECOV_TOKEN }} - file: cover.out - verbose: true - fail_ci_if_error: true + file: ./coverage.txt + flags: unittests + name: codecov-umbrella