diff --git a/.github/workflows/go-postsubmit.yml b/.github/workflows/go-postsubmit.yml index 657f3459..f9229850 100644 --- a/.github/workflows/go-postsubmit.yml +++ b/.github/workflows/go-postsubmit.yml @@ -13,6 +13,27 @@ env: GO_REQUIRED_MIN_VERSION: '' jobs: + coverage: + name: coverage + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v4 + - name: install Go + uses: actions/setup-go@v5 + with: + go-version: ${{ env.GO_VERSION }} + - name: unit + run: make test + - name: report coverage + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_UPLOAD_TOKEN }} + files: ./coverage.out + flags: unit + name: unit + verbose: true + fail_ci_if_error: true images: name: images runs-on: ubuntu-latest