From 9e65a85502d8319edbac8b548f78f5b4304886b5 Mon Sep 17 00:00:00 2001 From: Abhinandan Purkait Date: Mon, 18 Mar 2024 06:33:44 +0000 Subject: [PATCH] fix: codecov issue Signed-off-by: Abhinandan Purkait --- .github/workflows/pull_request.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 43f7071f..780df8e6 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -62,18 +62,28 @@ jobs: path: '.' pattern: '*.sh' - unit-test: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 + - name: Set up Go 1.19 + uses: actions/setup-go@v4 + with: + go-version: 1.19.9 + cache: false + - name: Unit test run: make test - name: Upload Coverage Report - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.txt + name: coverage-$(date +%s) + flags: unittests bdd-test: needs: ['unit-test']