diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f024d4..eb019f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,11 +43,15 @@ jobs: run: dotnet build --no-restore --configuration Release - name: Run unit tests - run: dotnet test --no-build --verbosity normal --configuration Release /p:CollectCoverage=true /p:Threshold=50 /p:ThresholdType=line /p:ThresholdStat=Average /p:CoverletOutput=./TestResults/ /p:ExcludeByAttribute="GeneratedCodeAttribute" + run: dotnet test --no-build --verbosity normal --configuration Release /p:CollectCoverage=true /p:Threshold=50 /p:ThresholdType=line /p:ThresholdStat=Average /p:CoverletOutputFormat=opencover /p:CoverletOutput=./TestResults/ /p:ExcludeByAttribute="GeneratedCodeAttribute" + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 publish-packages: name: Publish to GitHub Packages runs-on: ubuntu-latest + if: github.repository_owner == 'BpsLogicBuilder' needs: test steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9188267..672b25f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,11 +42,15 @@ jobs: run: dotnet build --no-restore --configuration Release - name: Run unit tests - run: dotnet test --no-build --verbosity normal --configuration Release /p:CollectCoverage=true /p:Threshold=50 /p:ThresholdType=line /p:ThresholdStat=Average /p:CoverletOutput=./TestResults/ /p:ExcludeByAttribute="GeneratedCodeAttribute" + run: dotnet test --no-build --verbosity normal --configuration Release /p:CollectCoverage=true /p:Threshold=50 /p:ThresholdType=line /p:ThresholdStat=Average /p:CoverletOutputFormat=opencover /p:CoverletOutput=./TestResults/ /p:ExcludeByAttribute="GeneratedCodeAttribute" + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 publish-packages: name: Publish Package to GitHub Packages and NuGet.org runs-on: ubuntu-latest + if: github.repository_owner == 'BpsLogicBuilder' needs: test steps: diff --git a/README.md b/README.md index 6fe285d..4ad4865 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # LogicBuilder.Workflow.ComponentModel.Serialization +[![Build Status](https://github.com/BpsLogicBuilder/LogicBuilder.Workflow.ComponentModel.Serialization/actions/workflows/ci.yml/badge.svg)](https://github.com/BpsLogicBuilder/LogicBuilder.Workflow.ComponentModel.Serialization/actions/workflows/ci.yml) +[![CodeQL](https://github.com/BpsLogicBuilder/LogicBuilder.Workflow.ComponentModel.Serialization/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/BpsLogicBuilder/LogicBuilder.Workflow.ComponentModel.Serialization/actions/workflows/github-code-scanning/codeql) +[![codecov](https://codecov.io/gh/BpsLogicBuilder/LogicBuilder.Workflow.ComponentModel.Serialization/graph/badge.svg?token=CTUXSQYTCV)](https://codecov.io/gh/BpsLogicBuilder/LogicBuilder.Workflow.ComponentModel.Serialization) +[![NuGet](https://img.shields.io/nuget/v/LogicBuilder.Workflow.ComponentModel.Serialization.svg)](https://www.nuget.org/packages/LogicBuilder.Workflow.ComponentModel.Serialization) + ## Integration with LogicBuilder.Rules This library serves as the serialization layer for the LogicBuilder.Rules rulesets, enabling: @@ -31,4 +36,4 @@ Contributions are welcome. ## Related Projects -- [LogicBuilder.Rules](https://github.com/BpsLogicBuilder/LogicBuilder.Rules) - The workflow rules engine that uses this serialization library \ No newline at end of file +- [LogicBuilder.Workflow.Activities.Rules](https://github.com/BpsLogicBuilder/LogicBuilder.Workflow.Activities.Rules) - The workflow rules engine that uses this serialization library \ No newline at end of file