Skip to content

Commit

Permalink
build: enable client SDK unit tests in CI (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld authored Oct 25, 2024
1 parent e7b83db commit 6d82447
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/actions/ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ 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'
test_verbosity:
description: 'The verbosity level of the test output.'
required: false
default: 'normal'

runs:
using: composite
Expand Down Expand Up @@ -35,4 +43,4 @@ runs:
shell: bash
run: |
dotnet restore ${{ inputs.test_project_file }}
dotnet test --framework=net6.0 ${{ inputs.test_project_file }}
dotnet test -v=${{ inputs.test_verbosity }} --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 6d82447

Please sign in to comment.