Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Codecov config #16

Merged
merged 21 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/**
Loading