Skip to content

Commit

Permalink
Run tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
anpetroc committed Jan 29, 2024
1 parent 9816fb6 commit 127e858
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
shell: cmd
if: ${{ runner.os == 'Windows' }}

- name: Test - Persistence
run: bin/Debug/Persistence.Tests/Persistence.Tests.exe

- name: Test - PAModel
run: bin/Debug/PAModelTests/PAModelTests.exe

## Only difference here is not forcing cmd
- name: Build and test (!win)
run: ./build ci
Expand Down
10 changes: 5 additions & 5 deletions src/PAModel/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"Newtonsoft.Json": {
"type": "Direct",
"requested": "[13.0.1, )",
"resolved": "13.0.3",
"contentHash": "HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ=="
"resolved": "13.0.1",
"contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A=="
},
"System.Text.Encodings.Web": {
"type": "Direct",
Expand All @@ -20,8 +20,8 @@
"System.Text.Json": {
"type": "Direct",
"requested": "[6.0.0, )",
"resolved": "6.0.9",
"contentHash": "2j16oUgtIzl7Xtk7demG0i/v5aU/ZvULcAnJvPb63U3ZhXJ494UYcxuEj5Fs49i3XDrk5kU/8I+6l9zRCw3cJw==",
"resolved": "6.0.0",
"contentHash": "zaJsHfESQvJ11vbXnNlkrR46IaMULk/gHxYsJphzSF+07kTjPHv+Oc14w6QEOfo3Q4hqLJgStUaYB9DBl0TmWg==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
"System.Text.Encodings.Web": "6.0.0"
Expand Down Expand Up @@ -119,4 +119,4 @@
}
}
}
}
}
7 changes: 4 additions & 3 deletions src/PAModelTests/PAModelTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>../../35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
<PublicSign>true</PublicSign>
<EnableMSTestRunner>true</EnableMSTestRunner>
<OutputType>Exe</OutputType>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
<PackageReference Include="MSTest.TestAdapter" Version="$(MSTestTestAdapterVersion)" />
<PackageReference Include="MSTest" Version="$(MSTest)" />
<PackageReference Include="coverlet.collector" Version="1.2.0" />
<PackageReference Include="YamlDotNet" Version="$(YamlDotNetVersion)" />
</ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/Persistence.Tests/Persistence.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>$(TargetFrameworkVersion)</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<EnableMSTestRunner>true</EnableMSTestRunner>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<SignAssembly>false</SignAssembly>
Expand All @@ -17,9 +18,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkVersion)" />
<PackageReference Include="MSTest.TestAdapter" Version="$(MSTestTestAdapterVersion)" />
<PackageReference Include="MSTest.TestFramework" Version="$(MSTestTestFrameworkVersion)" />
<PackageReference Include="MSTest" Version="$(MSTest)" />
<PackageReference Include="coverlet.collector" Version="$(CoverletCollectorVersion)" />
<PackageReference Include="FluentAssertions" Version="$(FluentAssertionsVersion)" />
</ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions src/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
<TargetFrameworkVersion>net7.0</TargetFrameworkVersion>
<YamlDotNetVersion>15.1.0</YamlDotNetVersion>
<MicrosoftNETTestSdkVersion>17.7.1</MicrosoftNETTestSdkVersion>
<MSTestTestAdapterVersion>2.2.10</MSTestTestAdapterVersion>
<MSTestTestFrameworkVersion>2.2.10</MSTestTestFrameworkVersion>
<MSTestTestAdapterVersion>3.2.0</MSTestTestAdapterVersion>
<MSTestTestFrameworkVersion>3.2.0</MSTestTestFrameworkVersion>
<MSTest>3.2.0</MSTest>
<CoverletCollectorVersion>3.2.0</CoverletCollectorVersion>
<FluentAssertionsVersion>6.12.0</FluentAssertionsVersion>
<MinVerVersion>4.3.0</MinVerVersion>
Expand Down

0 comments on commit 127e858

Please sign in to comment.