-
Notifications
You must be signed in to change notification settings - Fork 420
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 testing for Windows (both local and CI) #471
Conversation
Best reviewed: commit by commit
Optimal code review plan
|
@dafyddj The |
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.
To fix the Rubocop violations and make the code more Rubyish. To be honest, I'd prefer it even more if these sections could be embedded in the controls themselves, like it's been done here:
if os[:family] == 'windows' | ||
pkgs = %w[ | ||
Salt\ Minion | ||
] | ||
else | ||
pkgs = %w[ | ||
salt-master | ||
salt-minion | ||
] | ||
end |
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.
if os[:family] == 'windows' | |
pkgs = %w[ | |
Salt\ Minion | |
] | |
else | |
pkgs = %w[ | |
salt-master | |
salt-minion | |
] | |
end | |
pkgs = | |
case platform[:family] | |
when 'windows' | |
%w[Salt\ Minion] | |
else | |
%w[salt-master salt-minion] | |
end |
if os[:family] == 'windows' | ||
services = %w[ | ||
salt-minion | ||
] | ||
else | ||
services = %w[ | ||
salt-master | ||
salt-minion | ||
] | ||
end |
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.
if os[:family] == 'windows' | |
services = %w[ | |
salt-minion | |
] | |
else | |
services = %w[ | |
salt-master | |
salt-minion | |
] | |
end | |
services = | |
case platform[:family] | |
when 'windows' | |
%w[salt-minion] | |
else | |
%w[salt-master salt-minion] | |
end |
97ecdaf
to
e17d327
Compare
@dafyddj Note that the |
* add `-` if someone supplies `py3` in pillar, like other platforms
Checked using myii/ssf-formula#234. Lovely work, @dafyddj -- merged. One thing from the review above:
|
🎉 This PR is included in version 1.4.5 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Thanks for the merge.
I believe there's a better place for this kind of "configuration" and we should probably look into using Inputs instead. |
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]
Changes related to the build system[chore]
Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]
Changes to the continuous integration configuration[feat]
A new feature[fix]
A bug fix[perf]
A code change that improves performance[refactor]
A code change that neither fixes a bug nor adds a feature[revert]
A change used to revert a previous commit[style]
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]
Documentation changes[test]
Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE
?No.
Related issues and/or pull requests
Describe the changes you're proposing
Add local testing for Windows using Vagrant.
Add CI testing for Windows using GitHub Actions.
Fix a regression in Windows default values.
Pillar / config required to test the proposed changes
Debug log showing how the proposed changes work
Documentation checklist
README
(e.g.Available states
).pillar.example
.Testing checklist
state_top
).Additional context