Test passing quality gate
MODIFY
WalletWasabi.QualityGate/Program.cs
WalletWasabi.QualityGate/Program.cs
@@ -5,9 +5,18 @@ namespace WalletWasabi.QualityGate
// This software runs on CI and fails if the quality of a pull request does not conform to our rules.
public class Program
{
- private static void Main()
+ private static void Main(string[] args)
{
- Console.WriteLine("Hello World!");
+ if (args[0] == "foo")
+ {
+ Console.WriteLine("Failing gate.");
+ throw new Exception("foo");
+ }
+ else
+ {
+ Console.WriteLine("Passing gate.");
+ return;
+ }
}
}
}

MODIFY
WalletWasabi.sln
WalletWasabi.sln
@@ -18,6 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.gitmodules = .gitmodules
azure-pipelines-linux.yml = azure-pipelines-linux.yml
azure-pipelines-osx.yml = azure-pipelines-osx.yml
+ azure-pipelines-quality.yml = azure-pipelines-quality.yml
azure-pipelines-windows.yml = azure-pipelines-windows.yml
CONTRIBUTING.md = CONTRIBUTING.md
Directory.Build.props = Directory.Build.props

ADD
azure-pipelines-quality.yml
+jobs:
+- job: Linux
+ pool:
+ vmImage: 'ubuntu-latest'
+ steps:
+ - task: UseDotNet@2
+ displayName: 'Install .NET Core 3'
+ inputs:
+ version: 3.1.x
+ - task: DotNetCoreCLI@2
+ displayName: 'Test Quality'
+ inputs:
+ command: test
+ projects: 'WalletWasabi.QualityGate/WalletWasabi.QualityGate.csproj'
+ arguments: --configuration Release -- bar

Test passing quality gate