From fc7799be1632edf5f266f530b721f10ff04e4456 Mon Sep 17 00:00:00 2001 From: whistyun Date: Sat, 5 Nov 2022 19:49:15 +0900 Subject: [PATCH] retry --- .github/workflows/build.yml | 2 ++ tests/VisualTest/Class1.cs | 6 ++++-- tests/VisualTest/VisualTest.csproj | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6504da6..a44dfbd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,3 +42,5 @@ jobs: run: dotnet build --no-restore - name: Test run: dotnet test --no-build --verbosity normal + env: + RUNON_GITHUB: y diff --git a/tests/VisualTest/Class1.cs b/tests/VisualTest/Class1.cs index 0642846..59dd721 100644 --- a/tests/VisualTest/Class1.cs +++ b/tests/VisualTest/Class1.cs @@ -1,4 +1,5 @@ -using NUnit.Framework; +#if !OnGitHubAction +using NUnit.Framework; using System; using System.Diagnostics; using System.Drawing.Text; @@ -122,4 +123,5 @@ public void Closing() _process.Kill(); } } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/tests/VisualTest/VisualTest.csproj b/tests/VisualTest/VisualTest.csproj index 8fd9075..52d120d 100644 --- a/tests/VisualTest/VisualTest.csproj +++ b/tests/VisualTest/VisualTest.csproj @@ -1,7 +1,7 @@  - net462;net5.0-windows + netcoreapp3.0;net462;net5.0-windows true false @@ -25,4 +25,8 @@ + + OnGitHubAction + +