chore: add test coverage in PRs as comment (#884)
* generate test coverage in CI pipeline * add pipeline which adds comments in PR with test coverage
This commit is contained in:
parent
f435d5dda8
commit
8dafa4bfe8
2 changed files with 35 additions and 2 deletions
2
Makefile
2
Makefile
|
|
@ -35,7 +35,7 @@ fmt:
|
|||
# TEST
|
||||
test:
|
||||
@echo "Running tests for the terraform provider"
|
||||
@cd $(ROOT_DIR)/stackit && go test ./... -count=1 && cd $(ROOT_DIR)
|
||||
@cd $(ROOT_DIR)/stackit && go test ./... -count=1 -coverprofile=coverage.out && cd $(ROOT_DIR)
|
||||
|
||||
# Test coverage
|
||||
coverage:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue