Skip to content

Commit

Permalink
codecov: Add api/ to codecov report & exclude api/external (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
art-tapin committed Jul 28, 2023
1 parent 53fc7a2 commit 90cc0b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ codecov:
comment:
layout: "header, diff, flags, components, files"

ignore:
- api/external/** # ignoring external vendor code

flag_management:
individual_flags:
- name: unit
paths:
- pkg/**
- api/**
carryforward: true
- name: integration
paths:
Expand All @@ -24,6 +28,10 @@ flag_management:

component_management:
individual_components:
- component_id: api-v1beta1
name: api/v1beta1
paths:
- api/v1beta1
- component_id: common
name: pkg/common (u)
paths:
Expand All @@ -48,3 +56,4 @@ component_management:
name: controllers (i)
paths:
- controllers

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ IMG ?= $(IMAGE_TAG_BASE):$(IMAGE_TAG)
ENVTEST_K8S_VERSION = 1.22

# Directories containing unit & integration test packages
UNIT_DIRS := pkg/common pkg/istio pkg/log pkg/reconcilers pkg/rlptools
INTEGRATION_DIRS := controllers
UNIT_DIRS := ./pkg/... ./api/...
INTEGRATION_DIRS := ./controllers...

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
Expand Down

0 comments on commit 90cc0b3

Please sign in to comment.