Open shadyvb opened 3 years ago
Only thing preventing us is time and capacity, at the time GH actions weren't really suitable but I believe @joehoyle got it working and @kadamwhite too.
It's partially related to https://github.com/humanmade/altis-dev-tools/issues/102 and also the RFC for having a single dev dependency module for the local environments here https://github.com/humanmade/product-dev/pull/561
Ideally I'd like for devs to be able to choose their preferred CI environment by either using documented config or a scaffolding command like composer dev-tools scaffold travis
or composer dev-tools scaffold github
. I thought I'd captured that in an issue somewhere already but I guess not!
I posted about this on our internal dev list, so cross-posting the relevant content here.
The goal is to adapt Altis' composer dev-tools phpunit
command to GitHub Actions. I turned first to John's testing workflow for the Authorship plugin, which provides a great baseline. However, the composer install
step in that action didn't work for the Altis project I was working on because the project pulls in multiple private GitHub repositories via composer. Most of the complexity in the post below is due to private Composer VCS dependencies, and to a TTY mode issue in Local Server.
Related to https://docs.altis-dxp.com/nightly/dev-tools/continuous-integration/
We recommend, and generate config for, Travis as the recommended CI env, is there something that prevents us from suggesting GitHub Actions as an alternative CI env, with basic docs and examples ?