Skip to content

Commit

Permalink
Merge pull request #31 from MrDave1999/test/plugins-publish
Browse files Browse the repository at this point in the history
chore: Runs tests from the specified assemblied
  • Loading branch information
MrDave1999 authored Jan 22, 2024
2 parents 349d59c + 3511e29 commit 5b2226a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
- name: Test
run: |
dotnet test ./tests/CPlugin.Net/CPlugin.Net.Tests.csproj -c Release
dotnet publish ./tests/CPlugin.Net/CPlugin.Net.Tests.csproj -c Release --no-build -o out
dotnet vstest ./out/CPlugin.Net.Tests.dll
dotnet build ./samples/Plugins/AppointmentPlugin/Example.AppointmentPlugin.csproj -c Release
dotnet build ./samples/Plugins/PersonPlugin/Example.PersonPlugin.csproj -c Release
dotnet build ./samples/Plugins/JsonPlugin/Example.JsonPlugin.csproj -c Release
Expand Down
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="7.0.10" />
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageVersion Include="SimpleResults.AspNetCore" Version="1.0.0" />
<PackageVersion Include="DotEnv.Core.Props" Version="1.0.1" />
<PackageVersion Include="DotEnv.Core" Version="3.0.0" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.3" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
Expand Down
2 changes: 2 additions & 0 deletions tests/CPlugin.Net/CPlugin.Net.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CopyPluginsToPublishDirectory" />
<PackageReference Include="DotEnv.Core" />
<PackageReference Include="DotEnv.Core.Props" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" />
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
Expand Down

0 comments on commit 5b2226a

Please sign in to comment.