mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
skip dotnet script testing.
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace GitHub.Runner.Common.Tests
|
namespace GitHub.Runner.Common.Tests
|
||||||
{
|
{
|
||||||
@@ -12,6 +13,12 @@ namespace GitHub.Runner.Common.Tests
|
|||||||
[Trait("Category", "Runner")]
|
[Trait("Category", "Runner")]
|
||||||
public async Task EnsureDotnetsdkBashDownloadScriptUpToDate()
|
public async Task EnsureDotnetsdkBashDownloadScriptUpToDate()
|
||||||
{
|
{
|
||||||
|
if ((DateTime.UtcNow.Month - 1) % 3 != 0)
|
||||||
|
{
|
||||||
|
// Only check these script once a quater.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
string shDownloadUrl = "https://dot.net/v1/dotnet-install.sh";
|
string shDownloadUrl = "https://dot.net/v1/dotnet-install.sh";
|
||||||
|
|
||||||
using (HttpClient downloadClient = new HttpClient())
|
using (HttpClient downloadClient = new HttpClient())
|
||||||
@@ -36,6 +43,12 @@ namespace GitHub.Runner.Common.Tests
|
|||||||
[Trait("Category", "Runner")]
|
[Trait("Category", "Runner")]
|
||||||
public async Task EnsureDotnetsdkPowershellDownloadScriptUpToDate()
|
public async Task EnsureDotnetsdkPowershellDownloadScriptUpToDate()
|
||||||
{
|
{
|
||||||
|
if ((DateTime.UtcNow.Month - 1) % 3 != 0)
|
||||||
|
{
|
||||||
|
// Only check these script once a quater.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
string ps1DownloadUrl = "https://dot.net/v1/dotnet-install.ps1";
|
string ps1DownloadUrl = "https://dot.net/v1/dotnet-install.ps1";
|
||||||
|
|
||||||
using (HttpClient downloadClient = new HttpClient())
|
using (HttpClient downloadClient = new HttpClient())
|
||||||
|
|||||||
Reference in New Issue
Block a user