-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide GitHub Actions sample config within docs #177
Comments
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 #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 |
I posted about this on our internal dev list, so cross-posting the relevant content here. The goal is to adapt Altis' Post about how I set up GH Actions on AltisInstall private composer dependenciesThe
We'll be switching over to Composer 2 soon, but for now this is the most straightforward way I could find to install Composer packages in GH Actions. The Running PHPUnit in Docker
Whoops. Job failed:
Commit, push, and... heck.
😬 I have no idea what that means. I can search the web, though! Hmm, alright, every article seems to want me to run A ha! There's a post about this specific TTY issue in the context of GitHub Actions. It's a known issue, and there's a standard workaround! Let's use
Awesome, now the containers are pulling! And... the action still fails. The containers start, but it crashes out afterwards. The install was succeeding, but the error was instead triggered while trying to set up ElasticPress. We don't need ES to run our tests, so 🤫 let's just add n.b. Rob has pointed out in a Slack thread that we could have solved this by setting the environment variable We have the same file permissions issue when running PHPUnit, because the Putting it all togetherThis is our complete PHPUnit action:
Once I got all of this working, Rob also clued me in to the fact that Joe had gone through a similar process on another codebase. Instead of using the |
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 ?
The text was updated successfully, but these errors were encountered: