Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
(GH-108) Fixed missing github actions check
Browse files Browse the repository at this point in the history
The github actions ci detector was not added to the pipeline
of which CIs we iterate through. This commit fixes this
by adding it to the array.

fixes #108
  • Loading branch information
AdmiringWorm committed Jun 9, 2020
1 parent 40eb99a commit 045c037
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Linq;
using System.Linq;
using Codecov.Services.ContinuousIntegrationServers;

namespace Codecov.Factories
Expand All @@ -7,7 +7,7 @@ internal static class ContinuousIntegrationServerFactory
{
public static IContinuousIntegrationServer Create()
{
var continuousIntegrationServers = new IContinuousIntegrationServer[] { new AppVeyor(), new Travis(), new TeamCity(), new AzurePipelines(), new Jenkins() };
var continuousIntegrationServers = new IContinuousIntegrationServer[] { new AppVeyor(), new Travis(), new TeamCity(), new AzurePipelines(), new Jenkins(), new GitHubAction() };
var buildServer = continuousIntegrationServers.FirstOrDefault(x => x.Detecter);
return buildServer ?? new ContinuousIntegrationServer();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected bool CheckEnvironmentVariables(params string[] environmentVariables)

public virtual string GetEnvironmentVariable(string name)
{
if (UserEnvironmentVariables?.ContainsKey(name) == true)
if (UserEnvironmentVariables != null && UserEnvironmentVariables.ContainsKey(name))
{
return UserEnvironmentVariables[name];
}
Expand Down

0 comments on commit 045c037

Please sign in to comment.