Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

evan-55's avatar

How to serve app over https in GitHub Actions?

Hi all,

I'm in the process of developing a CI/CD pipeline for an app, and I'm running into an SSL-related issue when executing my browser tests.

I'm wanting to test the integration with Square Payments. This is working perfectly on local, since I'm serving the local site over SSL and therefore the Square Payments SDK allows rendering of the card payment form. However, when running via GitHub Actions I serve the app with php artisan serve which obviously does not run over SSL, and therefore the card payment form declines to render.

I've done a bunch of research and it seems like Caddy might be the way to go for this, but I can't quite figure out the syntax of the tests.yml file to get this working. Any thoughts?

My current tests.yml workflow file:

0 likes
0 replies

Please or to participate in this conversation.