[Test PR] Check compatibility with latest Git for Windows #118
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This relates to GitoxideLabs#2221.
There have been multiple incompatibilities before where we needed to change something, usually in the test suite itself, so this experiement checks ahead of time, so we're not rushed.
I first tried to do this with
winget
but it was not successful, nor am I sure it would always get the latest version once published even if it did work properly. So I went back to the approach that has been added and removed upstream multiple times before, but I put it into a single step and used a YAML anchor to duplicate that step across jobs. See commit messages for details, including what was attempted withwinget
and why a YAML anchor is preferable in this specific case to extracting to a composite action.The changes in this fork-internal PR are not meant to be merged anywhere in their current form, because we shouldn't default to upgrading or otherwise changing the version of Git for Windows to something other than what a runner provides. Nor should we test both this and the runner version of Git for Windows in every
push
orpull_request
event, since that would incur significant delays.But something like this could be turned off by default and made to be able to be turned on by another
matrix
variable, and also aworkflow-dispatch
parameter could be added that could let this be triggered manually. Considerations for that:test-fast
ortest-fixtures-windows
and not the other (at least based on how things have gone before), so it would be good to be able to easily turn it on for just one.