Use maliput::test_utilities and try same branch name in actions #24
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 is a companion to maliput/maliput#368 (use updated target name
maliput::test_utilities
) and based on maliput/maliput_dragway#18. The workflow fails when compiled against themaster
branch ofmaliput
, so I've also added support for checking out matching branch names of package dependencies in GitHub actions workflows, as discussed in maliput/maliput_infrastructure#136 (comment). The code linked in that comment is added to thetry_vcs_checkout
script, and there are two additional changes needed:Set
fetch-depth: 0
inactions/checkout
steps for dependencies so that the fell git history is checked out (only needed for dependencies, not for checking out its own code since that is already on the proper branch).Ensure that git 2.18+ is installed on the system before the
actions/checkout
steps are run. On 18.04, the standard version ofgit
is 2.17, so we use thegit-core
ppa to install a newer version (currently 2.29). In anticipation of 20.04, which has git 2.25, I've moved thesetup-ros
step to the beginning, so that it alone can be used to installgit
when we switch to 20.04, and the ppa step can be removed.