Skip to content

Commit

Permalink
retry
Browse files Browse the repository at this point in the history
  • Loading branch information
whistyun committed Nov 5, 2022
1 parent 3526d2a commit fc7799b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ jobs:
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
env:
RUNON_GITHUB: y
6 changes: 4 additions & 2 deletions tests/VisualTest/Class1.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using NUnit.Framework;
#if !OnGitHubAction
using NUnit.Framework;
using System;
using System.Diagnostics;
using System.Drawing.Text;
Expand Down Expand Up @@ -122,4 +123,5 @@ public void Closing()
_process.Kill();
}
}
}
}
#endif
6 changes: 5 additions & 1 deletion tests/VisualTest/VisualTest.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

<PropertyGroup>
<TargetFrameworks>net462;net5.0-windows</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0;net462;net5.0-windows</TargetFrameworks>
<UseWPF>true</UseWPF>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand All @@ -25,4 +25,8 @@
</None>
</ItemGroup>

<PropertyGroup Condition=" '$(RUNON_GITHUB)' != '' ">
<DefineConstants>OnGitHubAction</DefineConstants>
</PropertyGroup>

</Project>

0 comments on commit fc7799b

Please sign in to comment.