Skip to content

Commit

Permalink
Add codecov configure file
Browse files Browse the repository at this point in the history
  • Loading branch information
spyspoisspuis committed May 11, 2024
1 parent 3dc7f3c commit 3f8cd34
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-data-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
go-version: '1.21.x'

- name: Download dependencies
run: cd data-management-service && go mod download
run: cd data-management-service && go mod download && go mod vendor

- name: Unit test & integration test
run: cd data-management-service && go test -v -coverprofile=coverage.txt ./...
Expand Down
16 changes: 16 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true

comment: #this is a top-level key
layout: " diff, flags, files"
behavior: default
require_changes: false # if true: only post the comment if coverage changes
require_base: false # [true :: must have a base report to post]
require_head: true # [true :: must have a head report to post]
hide_project_coverage: false # [true :: only show coverage on the git diff aka patch coverage]

0 comments on commit 3f8cd34

Please sign in to comment.