Skip to content

Commit

Permalink
Updating the references of the tests frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutomi committed Feb 26, 2024
1 parent 50a1470 commit 782d3e6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 30 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,6 @@ jobs:
$VERSION = "${{ matrix.dotnet }}".Substring(0, "${{ matrix.dotnet }}".LastIndexOf('.'))
$DOTNET_TFM = "net$VERSION"
echo "DOTNET_TFM=$DOTNET_TFM" | Out-File -FilePath $env:GITHUB_ENV -Append
# - name: Set the TFM for .NET 6.0 in Ubuntu
# if: matrix.dotnet == '6.0.x' && startsWith(matrix.os, 'ubuntu')
# run: echo "DOTNET_TFM=net6.0" >> $GITHUB_ENV

# - name: Set the TFM for .NET 6.0 in Windows
# if: matrix.dotnet == '6.0.x' && startsWith(matrix.os, 'windows')
# run: echo "DOTNET_TFM=net6.0" | Out-File -FilePath $env:GITHUB_ENV -Append

# - name: Set the TFM for .NET 7.0 in Ubuntu
# if: matrix.dotnet == '7.0.x' && startsWith(matrix.os, 'ubuntu')
# run: echo "DOTNET_TFM=net7.0" >> $GITHUB_ENV

# - name: Set the TFM for .NET 7.0 in Windows
# if: matrix.dotnet == '7.0.x' && startsWith(matrix.os, 'windows')
# run: echo "DOTNET_TFM=net7.0" | Out-File -FilePath $env:GITHUB_ENV -Append

# - name: Set the TFM for .NET 8.0 in Ubuntu
# if: matrix.dotnet == '8.0.x' && startsWith(matrix.os, 'ubuntu')
# run: echo "DOTNET_TFM=net8.0" >> $GITHUB_ENV

# - name: Set the TFM for .NET 8.0 in Windows
# if: matrix.dotnet == '8.0.x' && startsWith(matrix.os, 'windows')
# run: echo "DOTNET_TFM=net8.0" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Restore dependencies
run: dotnet restore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Bogus" Version="34.0.2" />
<PackageReference Include="xunit" Version="2.5.3" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="MartinCostello.Logging.XUnit" Version="0.3.0" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<ItemGroup>
<PackageReference Include="Bogus" Version="34.0.2" />
<PackageReference Include="xunit" Version="2.5.3"/>
<PackageReference Include="xunit" Version="2.7.0"/>
<PackageReference Include="MartinCostello.Logging.XUnit" Version="0.3.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" Condition="'$(TargetFramework)' == 'net7.0'" />
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
<PackageReference Include="MartinCostello.Logging.XUnit" Version="0.3.0" />
<PackageReference Include="xunit" Version="2.5.3"/>
<PackageReference Include="xunit" Version="2.7.0"/>
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions test/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
</ItemGroup>

<ItemGroup Condition="$(IsTestProject) == True">
<PackageReference Include="xunit" Version="2.5.3"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
<PackageReference Include="xunit" Version="2.7.0"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand All @@ -25,7 +25,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Meziantou.Xunit.ParallelTestFramework" Version="2.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0"/>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit 782d3e6

Please sign in to comment.