Fix Alpine tests checking out wrong code #257
Merged
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 pull request closes #256
Before the most recent commit from the triggering branch was checked out. This is fine when there are only workflows triggered by the most recent commit. In cases where commits are made to a pull request in quick succession, the workflows in the queue may checkout the newer code by the time the workflow starts running. That leads to the workflow checking out the incorrect code, making it harder to track down behaviour changes when code is changing fast.
Now the workflow checks out all the history from the triggering branch, and then checks out the commit from the triggering commit SHA.