mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
Merge branch 'salmanmkc/6-template-validation-syntax-tests' of https://github.com/actions/runner into salmanmkc/6-template-validation-syntax-tests
This commit is contained in:
@@ -199,7 +199,7 @@ namespace GitHub.Runner.Common.Tests.Listener
|
|||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
// 1. Check that $restartinteractiverunner is correctly referenced with $ in if condition
|
// 1. Check that $restartinteractiverunner is correctly referenced with $ in if condition
|
||||||
Assert.Contains("if [[ \"$currentplatform\" == 'darwin' && $restartinteractiverunner -eq 0 ]];", template);
|
Assert.Contains("if [[ \"$currentplatform\" == 'darwin' && $restartinteractiverunner -eq 0 ]];\nthen", template);
|
||||||
|
|
||||||
// 2. Check for proper nesting of if statements for node version checks
|
// 2. Check for proper nesting of if statements for node version checks
|
||||||
int nodeVersionCheckLines = 0;
|
int nodeVersionCheckLines = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user