Skip to content

Commit aa2e7f4

Browse files
committed
ci: add Codecov configuration for coverage reporting and update README with badge
1 parent 6776c2e commit aa2e7f4

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.codecov.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# File .codecov.yml
2+
coverage:
3+
status:
4+
project:
5+
default:
6+
target: 80% # Defines a minimum coverage threshold for approval
7+
threshold: 2% # Allows a drop of up to 2% without failing
8+
patch:
9+
default:
10+
target: 80%
11+
threshold: 2%
12+
13+
ignore:
14+
- "examples/*" # Ignore all content inside the examples folder
15+
- "examples/**" # Ensures all nested files are ignored
16+
17+
comment:
18+
layout: "diff, flags, files"
19+
behavior: default
20+
21+
parsers:
22+
go:
23+
partials_as_hits: true # Counts partially covered lines as covered
24+
25+
fixes:
26+
- "::" # Fixes paths in reports to align with the repo structure

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
[![Go Report Card](https://goreportcard.com/badge/github.com/Dieg0Code/syndicate-go)](https://goreportcard.com/report/github.com/Dieg0Code/syndicate-go)
55
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/Dieg0Code/syndicate-go/ci.yml?branch=main)](https://github.com/Dieg0Code/syndicate-go/actions)
6+
[![codecov](https://codecov.io/github/Dieg0Code/syndicate-go/graph/badge.svg?token=FXYY1S9EP4)](https://codecov.io/github/Dieg0Code/syndicate-go)
67
[![GoDoc](https://godoc.org/github.com/Dieg0Code/syndicate-go?status.svg)](https://pkg.go.dev/github.com/Dieg0Code/syndicate-go)
78
[![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
89
[![Release](https://img.shields.io/github/v/release/Dieg0Code/syndicate-go)](https://github.com/Dieg0Code/syndicate-go/releases)

0 commit comments

Comments
 (0)