Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ jobs:
run: |
dotnet test --logger "console;verbosity=detailed" --logger "trx;LogFilePrefix=test-results" --results-directory tests/Temporalio.Tests/TestResults --blame-crash -v n --blame-hang-timeout 10m

- name: Validate package API surface
# Package API validation runs only during the Pack target and is
# platform-independent so running on one OS is sufficient.
if: ${{ matrix.os == 'ubuntu-latest' }}
run: dotnet pack -c Debug --no-restore

- name: Upload test results
if: ${{ !cancelled() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
Expand Down
8 changes: 8 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
leave revision off.
-->
<AssemblyVersion>1.14.1</AssemblyVersion>

<!--
Validate the public API surface of every packable project against the
previously published version. Auto-skips for IsPackable=false projects.
Bump PackageValidationBaselineVersion when releasing.
-->
<EnablePackageValidation>true</EnablePackageValidation>
<PackageValidationBaselineVersion>1.14.1</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<Description>Temporal SDK .NET Diagnostic Source Extension</Description>
<EnablePackageValidation Condition="'$(TargetFramework)' == 'netcoreapp3.1'">true</EnablePackageValidation>
<IncludeSymbols>true</IncludeSymbols>
<LangVersion>9.0</LangVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<Description>Temporal SDK .NET Hosting and Dependency Injection Extension</Description>
<EnablePackageValidation Condition="'$(TargetFramework)' == 'netcoreapp3.1'">true</EnablePackageValidation>
<IncludeSymbols>true</IncludeSymbols>
<LangVersion>9.0</LangVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<Description>Temporal SDK .NET OpenTelemetry Extension</Description>
<EnablePackageValidation Condition="'$(TargetFramework)' == 'netcoreapp3.1'">true</EnablePackageValidation>
<IncludeSymbols>true</IncludeSymbols>
<LangVersion>9.0</LangVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down
28 changes: 28 additions & 0 deletions src/Temporalio/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- https://learn.microsoft.com/dotnet/fundamentals/package-validation/diagnostic-ids -->
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Suppression>
<DiagnosticId>CP0006</DiagnosticId>
<Target>M:Temporalio.Client.ITemporalClient.ListActivitiesAsync(System.String,Temporalio.Client.ActivityListOptions)</Target>
<Left>lib/netstandard2.0/Temporalio.dll</Left>
<Right>lib/netcoreapp3.1/Temporalio.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0006</DiagnosticId>
<Target>M:Temporalio.Client.ITemporalClient.ListSchedulesAsync(Temporalio.Client.Schedules.ScheduleListOptions)</Target>
<Left>lib/netstandard2.0/Temporalio.dll</Left>
<Right>lib/netcoreapp3.1/Temporalio.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0006</DiagnosticId>
<Target>M:Temporalio.Client.ITemporalClient.ListWorkflowsAsync(System.String,Temporalio.Client.WorkflowListOptions)</Target>
<Left>lib/netstandard2.0/Temporalio.dll</Left>
<Right>lib/netcoreapp3.1/Temporalio.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0006</DiagnosticId>
<Target>M:Temporalio.Worker.ITemporalWorkerPlugin.ReplayWorkflowsAsync(Temporalio.Worker.WorkflowReplayer,System.Func{Temporalio.Worker.WorkflowReplayer,System.Collections.Generic.IAsyncEnumerable{Temporalio.Worker.WorkflowReplayResult}},System.Threading.CancellationToken)</Target>
<Left>lib/netstandard2.0/Temporalio.dll</Left>
<Right>lib/netcoreapp3.1/Temporalio.dll</Right>
</Suppression>
</Suppressions>
1 change: 0 additions & 1 deletion src/Temporalio/Temporalio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Description>Temporal SDK for .NET</Description>
<EnablePackageValidation Condition="'$(TargetFramework)' == 'netcoreapp3.1'">true</EnablePackageValidation>
<IncludeSymbols>true</IncludeSymbols>
<LangVersion>9.0</LangVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down
7 changes: 7 additions & 0 deletions tests/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<PropertyGroup>
<IsPackable>false</IsPackable>
</PropertyGroup>
</Project>
Loading