Skip to content

Commit 6d82447

Browse files
authored
build: enable client SDK unit tests in CI (#25)
1 parent e7b83db commit 6d82447

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/actions/ci/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ inputs:
77
test_project_file:
88
description: 'Path to the test project file. If provided, run unit tests, otherwise skip them.'
99
required: false
10+
target_test_framework:
11+
description: 'The target test framework to use.'
12+
required: false
13+
default: 'net6.0'
14+
test_verbosity:
15+
description: 'The verbosity level of the test output.'
16+
required: false
17+
default: 'normal'
1018

1119
runs:
1220
using: composite
@@ -35,4 +43,4 @@ runs:
3543
shell: bash
3644
run: |
3745
dotnet restore ${{ inputs.test_project_file }}
38-
dotnet test --framework=net6.0 ${{ inputs.test_project_file }}
46+
dotnet test -v=${{ inputs.test_verbosity }} --framework=${{ inputs.target_test_framework }} ${{ inputs.test_project_file }}

.github/workflows/sdk-client-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
with:
3737
project_file: ${{ env.PROJECT_FILE}}
3838
test_project_file: ${{ env.TEST_PROJECT_FILE}}
39+
target_test_framework: "net7.0"
3940

4041
- uses: ./.github/actions/contract-tests
4142
with:
@@ -47,4 +48,4 @@ jobs:
4748
with:
4849
workspace_path: ${{ env.WORKSPACE_PATH}}
4950

50-
# TODO: resolve issue with emulator and device tests
51+
# TODO: resolve issue with emulator and device tests

pkgs/sdk/client/test/LaunchDarkly.ClientSdk.Tests/LaunchDarkly.ClientSdk.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<TargetFrameworks>$(TESTFRAMEWORK)</TargetFrameworks>
99
<AssemblyName>LaunchDarkly.ClientSdk.Tests</AssemblyName>
1010
<RootNamespace>LaunchDarkly.Sdk.Client</RootNamespace>
11+
<IsTestProject>true</IsTestProject>
1112
</PropertyGroup>
1213
<ItemGroup>
1314
<PackageReference Include="LaunchDarkly.TestHelpers" Version="2.0.0" />

0 commit comments

Comments
 (0)