diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml
new file mode 100644
index 00000000..363091bb
--- /dev/null
+++ b/.github/workflows/code-coverage.yml
@@ -0,0 +1,43 @@
+name: Code Coverage
+
+on:
+ push:
+ branches: [ main ]
+ paths-ignore:
+ - '**.md'
+ pull_request:
+ branches: [ main ]
+ paths-ignore:
+ - '**.md'
+
+jobs:
+ build-test-report:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ version: [net6.0]
+
+ env:
+ OS: ${{ matrix.os }}
+
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+
+ - name: Install dependencies
+ run: dotnet restore
+
+ - name: Build
+ run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
+
+ - name: Test ${{ matrix.version }}
+ run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
+
+ - uses: codecov/codecov-action@v3.1.0
+ with:
+ env_vars: OS
+ name: Code Coverage for ${{ matrix.os }}
+ fail_ci_if_error: true
+ verbose: true
diff --git a/README.md b/README.md
index 8c0eae5b..f2044817 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,8 @@
-# OpenFeature SDK for .NET
+# OpenFeature SDK for .NET
[![a](https://img.shields.io/badge/slack-%40cncf%2Fopenfeature-brightgreen?style=flat&logo=slack)](https://cloud-native.slack.com/archives/C0344AANLA1)
[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)]()
+[![codecov](https://codecov.io/gh/open-feature/dotnet-sdk/branch/main/graph/badge.svg?token=MONAVJBXUJ)](https://codecov.io/gh/open-feature/dotnet-sdk)
OpenFeature is an open standard for feature flag management, created to support a robust feature flag ecosystem using cloud native technologies. OpenFeature will provide a unified API and SDK, and a developer-first, cloud-native implementation, with extensibility for open source and commercial offerings.
@@ -17,7 +18,7 @@ The packages will aim to support all current .NET versions. Refer to the current
## Basic Usage
-```csharp
+```csharp
OpenFeature.SetProvider(new NoOpProvider());
var client = OpenFeature.GetClient();
diff --git a/build/Common.tests.props b/build/Common.tests.props
index 4472a52f..1cded11d 100644
--- a/build/Common.tests.props
+++ b/build/Common.tests.props
@@ -15,6 +15,7 @@
Refer to https://docs.microsoft.com/nuget/concepts/package-versioning for semver syntax.
-->
[4.17.0]
+ [3.1.2]
[6.7.0]
[17.2.0]
[4.18.1]
diff --git a/test/OpenFeature.Tests/OpenFeature.Tests.csproj b/test/OpenFeature.Tests/OpenFeature.Tests.csproj
index ba79a49d..06639880 100644
--- a/test/OpenFeature.Tests/OpenFeature.Tests.csproj
+++ b/test/OpenFeature.Tests/OpenFeature.Tests.csproj
@@ -7,6 +7,14 @@
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+