Skip to content

Commit

Permalink
Add Codecov config + downgrade to codecov-action@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
PABERTHIER authored Nov 21, 2024
1 parent c81590b commit cc0b591
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ jobs:

# Step 12: Upload coverage report to Codecov
- name: ☁️ Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v4
with:
files: ${{ env.PROJECT_TESTRESULTS_PATH }}/*/coverage.cobertura.xml
name: codecov-windows-latest
verbose: true
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 4 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ Improvements **WIP**.
- [ReportGenerator](https://github.com/danielpalme/ReportGenerator)
- [FFMpegCore](https://github.com/rosenbjerg/FFMpegCore)

## Code coverage :bar_chart:

[![codecov](https://codecov.io/github/PABERTHIER/photo-manager/graphs/sunburst.svg?token=DILR0QRXVN)](https://codecov.io/github/PABERTHIER/photo-manager)

## Transparency :handshake:

This project has some versionned dll and rar files for its own good working.
Expand Down
48 changes: 48 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
codecov:
require_ci_to_pass: yes
max_report_age: off

comment:
layout: "header, diff, flags, components, files, footer"
behavior: default
require_changes: false

coverage:
precision: 2
round: down
range: "70..100"

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: yes
macro: no

component_management:
default_rules:
statuses:
- type: project
target: auto
individual_components:
- component_id: module_ui
name: UI
paths:
- PhotoManager/PhotoManager.UI/**
- component_id: module_application
name: Application
paths:
- PhotoManager/PhotoManager.Application/**
- component_id: module_domain
name: Domain
paths:
- PhotoManager/PhotoManager.Domain/**
- component_id: module_infrastructure
name: Infrastructure
paths:
- PhotoManager/PhotoManager.Infrastructure/**
- component_id: module_common
name: Common
paths:
- PhotoManager/PhotoManager.Common/**

0 comments on commit cc0b591

Please sign in to comment.