File tree Expand file tree Collapse file tree 3 files changed +20
-9
lines changed
GithubActionsHelloWorldTests Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >net6 .0</TargetFramework >
5+ <TargetFramework >net8 .0</TargetFramework >
66 <Version Condition =" '$(CURRENT_VERSION)' != ''" >$(CURRENT_VERSION)</Version >
77 <Version Condition =" '$(CURRENT_VERSION)' == ''" >0.0.1</Version >
88 <AssemblyVersion >$(Version)</AssemblyVersion >
2020 </PropertyGroup >
2121
2222 <ItemGroup >
23-
24-
2523 <PackageReference Include =" SixLabors.ImageSharp" Version =" 3.1.5" />
2624 <PackageReference Include =" ZXing.Net" Version =" 0.16.9" />
27-
2825 </ItemGroup >
2926
3027</Project >
Original file line number Diff line number Diff line change 11using GithubActionsHelloWorld ;
2+ using System ;
3+ using System . Threading ;
24using System . Threading . Tasks ;
35using Xunit ;
46
@@ -12,5 +14,17 @@ public async Task Main_ShouldRunWithoutError()
1214 var args = new string [ ] { "SomeParameter" } ;
1315 await Program . Main ( args ) ;
1416 }
17+
18+ [ Fact ]
19+ public void ShouldDoTheSameThingOnEachGHARunner ( )
20+ {
21+ Thread . CurrentThread . CurrentCulture = new System . Globalization . CultureInfo ( "en-US" ) ;
22+
23+ string expected = "9/2/2010 12:00:00 AM" ;
24+ DateTime parsedDate = DateTime . Parse ( expected ) ;
25+ var actual = parsedDate . ToString ( ) ;
26+
27+ Assert . Equal ( expected , actual ) ;
28+ }
1529 }
1630}
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net6 .0</TargetFramework >
4+ <TargetFramework >net8 .0</TargetFramework >
55
66 <IsPackable >false</IsPackable >
77 </PropertyGroup >
88
99 <ItemGroup >
10- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.0.0 " />
11- <PackageReference Include =" xunit" Version =" 2.4.1 " />
12- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.3 " >
10+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.11.1 " />
11+ <PackageReference Include =" xunit" Version =" 2.9.2 " />
12+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.8.2 " >
1313 <PrivateAssets >all</PrivateAssets >
1414 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1515 </PackageReference >
16- <PackageReference Include =" coverlet.collector" Version =" 6.0.0 " >
16+ <PackageReference Include =" coverlet.collector" Version =" 6.0.2 " >
1717 <PrivateAssets >all</PrivateAssets >
1818 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1919 </PackageReference >
You can’t perform that action at this time.
0 commit comments