Skip to content

Commit 62799c1

Browse files
committed
ci: configure Codecov for PHP SDK
1 parent 583e09c commit 62799c1

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
# codecov/codecov-action v6.0.1
8282
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
8383
with:
84+
disable_search: true
8485
fail_ci_if_error: false
8586
flags: unittests
8687
files: ./coverage.xml

codecov.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Codecov configuration for the ARCP PHP SDK.
2+
# Reference: https://docs.codecov.com/docs/codecovyml-reference
3+
4+
codecov:
5+
notify:
6+
wait_for_ci: true
7+
require_ci_to_pass: true
8+
9+
coverage:
10+
precision: 2
11+
round: down
12+
range: "70...95"
13+
status:
14+
project:
15+
default:
16+
target: 85%
17+
threshold: 1%
18+
flags:
19+
- unittests
20+
patch:
21+
default:
22+
target: 80%
23+
threshold: 5%
24+
25+
flag_management:
26+
default_rules:
27+
carryforward: true
28+
individual_flags:
29+
- name: unittests
30+
paths:
31+
- src/**
32+
33+
ignore:
34+
- "bin/**"
35+
- "docs/**"
36+
- "samples/**"
37+
- "recipes/**"
38+
- "tests/**"
39+
- "tools/**"
40+
- "vendor/**"
41+
42+
comment:
43+
layout: "header, diff, flags, files, footer"
44+
behavior: default
45+
require_changes: false
46+
require_base: false
47+
require_head: true

0 commit comments

Comments
 (0)