Skip to content

Commit 322432d

Browse files
tishunthachlp
authored andcommitted
Add CodeCov configuration, enable test analytics (redis#3022) (redis#3023)
* Add CodeCov configuration, enable test analytics * Issue in argument * ... and the right filename * ... perhaps by specifying exactly where the file is? * Polishing * Check why configuration is not working * Final version
1 parent c1f0bcc commit 322432d

File tree

4 files changed

+72
-3
lines changed

4 files changed

+72
-3
lines changed

.github/codecov.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
codecov: # see https://docs.codecov.com/docs/codecovyml-reference
2+
branch: main
3+
4+
coverage:
5+
status: # see https://docs.codecov.com/docs/commit-status
6+
project:
7+
default:
8+
target: auto # minimum coverage ratio that the commit must meet to be considered a success
9+
threshold: 5 # Allow the coverage to drop by <number>%, and posting a success status
10+
branches:
11+
- main
12+
- '[0-9].*'
13+
14+
comment: # see https://docs.codecov.com/docs/pull-request-comments
15+
layout: "condensed_header, condensed_files, condensed_footer"
16+
behavior: new
17+
require_changes: true # Only post comment if there are changes in coverage (positive or negative)
18+
19+
component_management: # see https://docs.codecov.com/docs/components
20+
individual_components:
21+
- component_id: module_json
22+
name: Lettuce JSON
23+
paths:
24+
- src/main/java/**/json/**
25+
- component_id: module_api
26+
name: Lettuce API
27+
paths:
28+
- src/main/java/**/api/**
29+
- component_id: module_sentinel
30+
name: Lettuce Sentinel
31+
paths:
32+
- src/main/java/**/sentinel/**
33+
- component_id: module_cluster
34+
name: Lettuce Cluster
35+
paths:
36+
- src/main/java/**/cluster/**
37+
- component_id: module_pubsub
38+
name: Lettuce PubSub
39+
paths:
40+
- src/main/java/**/pubsub/**
41+
- component_id: module_masterreplica
42+
name: Lettuce Master/Replica
43+
paths:
44+
- src/main/java/**/masterreplica/**
45+
- src/main/java/**/masterslave/**
46+
- component_id: module_metrics
47+
name: Lettuce Metrics & Tracing
48+
paths:
49+
- src/main/java/**/metrics/**
50+
- src/main/java/**/tracing/**
51+
- component_id: module_core
52+
name: Lettuce Core
53+
paths:
54+
- src/main/java/**/core/*
55+
- src/main/java/**/codec/**
56+
- src/main/java/**/dynamic/**
57+
- src/main/java/**/event/**
58+
- src/main/java/**/internal/**
59+
- src/main/java/**/protocol/**
60+
- src/main/java/**/resource/**
61+
- src/main/java/**/support/**
62+
- component_id: module_kotlin
63+
name: Lettuce Kotlin
64+
paths:
65+
- src/main/kotlin/**

.github/workflows/integration.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ jobs:
5454
JVM_OPTS: -Xmx3200m
5555
TERM: dumb
5656
- name: Upload coverage reports to Codecov
57-
uses: codecov/codecov-action@v4.0.1
57+
uses: codecov/test-results-action@v1
5858
with:
59+
fail_ci_if_error: false
60+
files: ./target/surefire-reports/TEST*,./target/failsafe-reports/TEST*
61+
codecov_yml_path: ./.github/codecov.yml
62+
verbose: ${{ runner.debug }}
5963
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
# Drafts your next Release notes as Pull Requests are merged into "master"
26-
- uses: release-drafter/release-drafter@v5
26+
- uses: release-drafter/release-drafter@v6
2727
with:
2828
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
2929
config-name: release-drafter-config.yml

.github/workflows/spellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout
9-
uses: actions/checkout@v3
9+
uses: actions/checkout@v4
1010
- name: Check Spelling
1111
uses: rojopolis/[email protected]
1212
with:

0 commit comments

Comments
 (0)