Support pre/post/container/composite actions within composite actions (#1222)

Support Composite Actions with uses: steps
This commit is contained in:
Thomas Boop
2021-07-28 15:35:21 -04:00
committed by GitHub
parent 5281434f3f
commit 4e95d0d6ad
11 changed files with 255 additions and 62 deletions

View File

@@ -877,6 +877,7 @@ namespace GitHub.Runner.Common.Tests.Worker
}
}
};
_hc.EnqueueInstance<IActionRunner>(new Mock<IActionRunner>().Object);
//Act
var steps = (await _actionManager.PrepareActionsAsync(_ec.Object, actions)).ContainerSetupSteps;
@@ -967,8 +968,7 @@ namespace GitHub.Runner.Common.Tests.Worker
var result = await _actionManager.PrepareActionsAsync(_ec.Object, actions);
//Assert
// TODO: Update this test
Assert.Equal(0, result.PreStepTracker.Count);
Assert.Equal(1, result.PreStepTracker.Count);
}
finally