Skip to content

Commit

Permalink
add code-cov (#675)
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
  • Loading branch information
shubham-cmyk authored Oct 21, 2023
1 parent a7c4452 commit 7534381
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/operator-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: ${{ env.GolangVersion }}
- name: Run Go Tests
run: go test ./...
- name: Run Go Tests with coverage
run: go test ./... -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
file: ./coverage.txt
fail_ci_if_error: true
verbose: true

code_quality_golang_ci_lint:
needs: [gofmt, govet]
Expand Down

0 comments on commit 7534381

Please sign in to comment.