Skip to content

Commit b657db6

Browse files
committed
Merge pull request #126 from neomasterhub/125-publish-with-running-unit-tests
#125 Publish with running unit tests
2 parents 00172f3 + e301232 commit b657db6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/nuget-publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
- name: Build project
2525
run: dotnet build Neomaster.JsonToLinq/Neomaster.JsonToLinq.csproj --configuration Release --no-restore
2626

27+
- name: Build and run unit tests
28+
run: |
29+
dotnet build Neomaster.JsonToLinq.UnitTests/Neomaster.JsonToLinq.UnitTests.csproj --configuration Release
30+
dotnet test Neomaster.JsonToLinq.UnitTests/Neomaster.JsonToLinq.UnitTests.csproj --configuration Release --no-build
31+
2732
- name: Pack NuGet package
2833
run: dotnet pack Neomaster.JsonToLinq/Neomaster.JsonToLinq.csproj --configuration Release --no-build --output ./nupkg
2934

Neomaster.JsonToLinq.UnitTests/Neomaster.JsonToLinq.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>disable</Nullable>
77
<IsPackable>false</IsPackable>

Neomaster.JsonToLinq/Neomaster.JsonToLinq.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<NoWarn>$(NoWarn);IDE0079</NoWarn>
1010
<PackageId>JsonToLinq</PackageId>
1111
<PackageIcon>logo.png</PackageIcon>
12-
<Version>1.0.0-rc906</Version>
12+
<Version>1.0.0-rc907</Version>
1313
<Authors>Neomaster</Authors>
1414
<Company>Neomaster</Company>
1515
<Copyright>Copyright © 2025 Neomaster</Copyright>

0 commit comments

Comments
 (0)