Skip to content

Commit dd6c951

Browse files
committed
Add Codecov integration
- Add Codecov integration for code coverage reporting - Add Codecov and Pester Test badges to README.md
1 parent ec4d14a commit dd6c951

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.github/workflows/Pester.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ jobs:
4444
name: code-coverage
4545
path: coverage.xml
4646

47+
- name: Upload coverage to Codecov
48+
if: always()
49+
uses: codecov/codecov-action@v4
50+
with:
51+
files: ./coverage.xml
52+
flags: unittests
53+
name: codecov-asbuiltreport-core
54+
fail_ci_if_error: false
55+
4756
analyze:
4857
runs-on: windows-latest
4958

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Improve error handling for localized data import
1212
- Add Pester tests and GitHub workflow
1313
- Add Dependabot configuration for automated dependency updates
14+
- Add Codecov integration for code coverage reporting
1415

1516
### Changed
1617
- Update GitHub Release action for new folder structures

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
<a href="https://github.com/AsBuiltReport/AsBuiltReport.Core/graphs/contributors" alt="GitHub Contributors">
1919
<img src="https://img.shields.io/github/contributors/AsBuiltReport/AsBuiltReport.Core.svg"/></a>
2020
</p>
21+
<p align="center">
22+
<a href="https://codecov.io/gh/AsBuiltReport/AsBuiltReport.Core" alt="Code Coverage">
23+
<img src="https://codecov.io/gh/AsBuiltReport/AsBuiltReport.Core/branch/master/graph/badge.svg" /></a>
24+
<a href="https://github.com/AsBuiltReport/AsBuiltReport.Core/actions/workflows/Pester.yml" alt="Pester Tests">
25+
<img src="https://github.com/AsBuiltReport/AsBuiltReport.Core/workflows/Pester%20Tests/badge.svg" /></a>
26+
</p>
2127
<p align="center">
2228
<a href="https://twitter.com/AsBuiltReport" alt="Twitter">
2329
<img src="https://img.shields.io/twitter/follow/AsBuiltReport.svg?style=social"/></a>

0 commit comments

Comments
 (0)