-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gh workflow] Add CodeCov integration (#212)
* gh workflow, codecov: Add codecov gh actions integration for unit & integration tests (#175) * codecov: Create and set up repository codecov.yaml config (#175) * makefile, refactor: Update Makefile for unit & integration tests (#175) - Added UNIT_DIRS and INTEGRATION_DIRS variables to specify directories test packages. - Modified the 'test-unit' and 'integration-test' recipes to run tests for the directories specified in UNIT_DIRS/INTEGRATION_DIRS and generate separate coverage reports for each directory. - Changed 'clean-cov' target to remove the 'coverage' directory instead of just 'cover.out'. These changes improve the test organization and ensure separate coverage reports for unit and integration tests. The 'clean-cov' target now removes the entire 'coverage' directory, cleaning up all coverage reports. * gitignore: Add folder with test coverages to .gitignore (#175) * codecov, refactor: Remove CODECOV_TOKEN because the repo is public * readme, codecov: Add codecov status badge to README (#175) * codecov: Add api/ to codecov report & exclude api/external (#175) * Makefile, refactor: Implemented recursive directory scanning (#175) kudos to @KevFan * codecov, refactor: Update .github/codecov.yaml api/v1beta1 component (#175) Co-authored-by: Kevin Fan <[email protected]> * codecov, refactor: Ignore controller-gen generated code (#175) Co-authored-by: Kevin Fan <[email protected]> * codecov: Add CODECOV_TOKEN despite repo being public to make CI/CD stable (#175) Read more at: https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954 Co-authored-by: Kevin Fan <[email protected]> --------- Co-authored-by: Kevin Fan <[email protected]>
- Loading branch information
Showing
5 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Find more at https://docs.codecov.com/docs/codecovyml-reference | ||
codecov: | ||
bot: "Codecov Bot" | ||
max_report_age: 12 | ||
require_ci_to_pass: yes | ||
notify: | ||
after_n_builds: 1 | ||
wait_for_ci: yes | ||
|
||
# Layout of the PR comment produced by Codecov bot | ||
comment: | ||
layout: "header, diff, flags, components, files" | ||
|
||
ignore: | ||
- api/external/** # ignoring external vendor code | ||
- **/*.deepcopy.go # ignore controller-gen generated code | ||
|
||
flag_management: | ||
individual_flags: | ||
- name: unit | ||
paths: | ||
- pkg/** | ||
- api/** | ||
carryforward: true | ||
- name: integration | ||
paths: | ||
- controllers/** | ||
carryforward: true | ||
|
||
component_management: | ||
individual_components: | ||
- component_id: api-v1beta1 | ||
name: api/v1beta1 (u) | ||
paths: | ||
- api/v1beta1 | ||
- component_id: common | ||
name: pkg/common (u) | ||
paths: | ||
- pkg/common | ||
- component_id: istio | ||
name: pkg/istio (u) | ||
paths: | ||
- pkg/istio | ||
- component_id: log | ||
name: pkg/log (u) | ||
paths: | ||
- pkg/log | ||
- component_id: reconcilers | ||
name: pkg/reconcilers (u) | ||
paths: | ||
- pkg/reconcilers | ||
- component_id: rlptools | ||
name: pkg/rlptools (u) | ||
paths: | ||
- pkg/rlptools | ||
- component_id: controllers | ||
name: controllers (i) | ||
paths: | ||
- controllers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters