Fix CI issues due to composer v2, include GitHub Action proof of concept #30
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.
Hey there 👋
It looks like composer recently upgraded to v2, which is now installed
by default by the composer installer script. Some of the older HHVM versions were failing in CI due to certain versions of hhvm-autoload having dependencies that required composer v1 instead of v2. The installer script does
allow a --version flag, but requires a specific version instead of 1.x, so I opted for the most recent v1 version, 1.10.17. Using v1 seems to fix the test suite for older HHVM versions.
I was trying to use travis-ci.org for CI on my fork of this repo but it
was taking an hour and a half for a build to go through (and apparently
travis-ci.org is being made read-only at the end of the year in favor of
travis-ci.com). I thought I'd try making a GitHub Action to run tests
instead to see if migrating would be that hard.
This adds a
Test
workflow to run a CI matrix on almost all of the sameHHVM versions that the
travis.yml
specifies. I removed versions 3.25.3and 3.26.3 because they were failing due to not supporting
varray
s(this was happening on travis as well), as well as renamed
.travis.sh
to
ci-entrypoint.sh
since the script still works totally find as anentrypoint for the hhvm/hhvm docker image that runs the test suite.
I totally realize the GitHub Action change is unsolicited, so if that doesn't fit in with the plan for CI for this repo feel free to close the PR. I made sure to segment out the changes to using composer v1 in a separate commit so I could at least make a PR with that change to fix the current issues on Travis.