diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 0000000000..4b4f2fe041 --- /dev/null +++ b/.github/codecov.yml @@ -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 %, 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/** \ No newline at end of file diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 3e796f739a..9213271307 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -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 }} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 8461e501fe..a0c6d54045 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -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 diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index f3239f240b..bf102d541c 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -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/spellcheck-github-actions@0.36.0 with: