Skip to content

Commit

Permalink
Add CodeCov configuration, enable test analytics (#3022) (#3023)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
tishun authored Oct 23, 2024
1 parent 3702373 commit 29afe13
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 3 deletions.
65 changes: 65 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
codecov: # see https://docs.codecov.com/docs/codecovyml-reference
branch: main

coverage:
status: # see https://docs.codecov.com/docs/commit-status
project:
default:
target: auto # minimum coverage ratio that the commit must meet to be considered a success
threshold: 5 # Allow the coverage to drop by <number>%, and posting a success status
branches:
- main
- '[0-9].*'

comment: # see https://docs.codecov.com/docs/pull-request-comments
layout: "condensed_header, condensed_files, condensed_footer"
behavior: new
require_changes: true # Only post comment if there are changes in coverage (positive or negative)

component_management: # see https://docs.codecov.com/docs/components
individual_components:
- component_id: module_json
name: Lettuce JSON
paths:
- src/main/java/**/json/**
- component_id: module_api
name: Lettuce API
paths:
- src/main/java/**/api/**
- component_id: module_sentinel
name: Lettuce Sentinel
paths:
- src/main/java/**/sentinel/**
- component_id: module_cluster
name: Lettuce Cluster
paths:
- src/main/java/**/cluster/**
- component_id: module_pubsub
name: Lettuce PubSub
paths:
- src/main/java/**/pubsub/**
- component_id: module_masterreplica
name: Lettuce Master/Replica
paths:
- src/main/java/**/masterreplica/**
- src/main/java/**/masterslave/**
- component_id: module_metrics
name: Lettuce Metrics & Tracing
paths:
- src/main/java/**/metrics/**
- src/main/java/**/tracing/**
- component_id: module_core
name: Lettuce Core
paths:
- src/main/java/**/core/*
- src/main/java/**/codec/**
- src/main/java/**/dynamic/**
- src/main/java/**/event/**
- src/main/java/**/internal/**
- src/main/java/**/protocol/**
- src/main/java/**/resource/**
- src/main/java/**/support/**
- component_id: module_kotlin
name: Lettuce Kotlin
paths:
- src/main/kotlin/**
6 changes: 5 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ jobs:
JVM_OPTS: -Xmx3200m
TERM: dumb
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
uses: codecov/test-results-action@v1
with:
fail_ci_if_error: false
files: ./target/surefire-reports/TEST*,./target/failsafe-reports/TEST*
codecov_yml_path: ./.github/codecov.yml
verbose: ${{ runner.debug }}
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
with:
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
config-name: release-drafter-config.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check Spelling
uses: rojopolis/[email protected]
with:
Expand Down

0 comments on commit 29afe13

Please sign in to comment.