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:
Marcel Jacek 2025-06-23 09:48:00 +02:00 committed by GitHub
parent f435d5dda8
commit 8dafa4bfe8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 35 additions and 2 deletions

View file

@ -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: