-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for SpaceAutomation #2545
Conversation
Thanks. Some tests would be nice. |
Not exactly sure what you wanna test here. Do you want to add a sample CI? |
@matkoch have a look here
|
There is no pull-request support yet. Honestly, other tests look more like repeating the implementation (or testing |
@matkoch, the tests ensure that the build server implementation output the expected stuff. We need tests for that. A sample CI would be fine as well, but does not alleviate the need for tests. |
Tests added. Sorry for the long delay! |
Awesome, @matkoch! If you could please rebase against |
Updated |
if (setEnvironmentTempFilePath != null && File.Exists(setEnvironmentTempFilePath)) | ||
{ | ||
File.Delete(setEnvironmentTempFilePath); | ||
setEnvironmentTempFilePath = null; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one is not needed here at all, as only the GH actions build agent is using a file, so it is needed only in the GH tests
buildServer = sp.GetService<SpaceAutomation>(); | ||
environment.SetEnvironmentVariable(SpaceAutomation.EnvironmentVariableName, "true"); | ||
|
||
setEnvironmentTempFilePath = Path.GetTempFileName(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one is not needed here at all, as only the GH actions build agent is using a file, so it is needed only in the GH tests
{ | ||
private IEnvironment environment; | ||
private SpaceAutomation buildServer; | ||
private string setEnvironmentTempFilePath; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one is not needed here at all, as only the GH actions build agent is using a file, so it is needed only in the GH tests
Updated. |
Thank you @matkoch for your contribution! |
🎉 This issue has been resolved in version 5.6.10 🎉 Your GitReleaseManager bot 📦🚀 |
Just a patch increment?:) |
Let me know if anything is missing to support a new CI system.