Skip to content

Commit

Permalink
build: enable client SDK unit tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Oct 24, 2024
1 parent b23e391 commit 65921a3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/actions/ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ inputs:
test_project_file:
description: 'Path to the test project file. If provided, run unit tests, otherwise skip them.'
required: false
target_test_framework:
description: 'The target test framework to use.'
required: false
default: 'net6.0'

runs:
using: composite
Expand Down Expand Up @@ -35,4 +39,4 @@ runs:
shell: bash
run: |
dotnet restore ${{ inputs.test_project_file }}
dotnet test --framework=net6.0 ${{ inputs.test_project_file }}
dotnet test --framework=${{ inputs.target_test_framework }} ${{ inputs.test_project_file }}
3 changes: 2 additions & 1 deletion .github/workflows/sdk-client-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
with:
project_file: ${{ env.PROJECT_FILE}}
test_project_file: ${{ env.TEST_PROJECT_FILE}}
target_test_framework: "net7.0"

- uses: ./.github/actions/contract-tests
with:
Expand All @@ -47,4 +48,4 @@ jobs:
with:
workspace_path: ${{ env.WORKSPACE_PATH}}

# TODO: resolve issue with emulator and device tests
# TODO: resolve issue with emulator and device tests
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<TargetFrameworks>$(TESTFRAMEWORK)</TargetFrameworks>
<AssemblyName>LaunchDarkly.ClientSdk.Tests</AssemblyName>
<RootNamespace>LaunchDarkly.Sdk.Client</RootNamespace>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="LaunchDarkly.TestHelpers" Version="2.0.0" />
Expand Down

0 comments on commit 65921a3

Please sign in to comment.