I'm blogging about Emacs, Drupal, php and exciting subjects

· Lars Nielsen

Environment Variables Not Reaching PHP in GitHub Actions: setup-php, variables_order and php -S

When I moved CaRMen's Playwright tests into GitHub Actions, every login test failed. Partway through each test, the login page redirected to the first-run installer, as if the database were empty. It wasn't. The PHP backend wasn't looking at the database the job had set up at all, because it never saw the environment variables that pointed to it.

Read article Environment Variables Not Reaching PHP in GitHub Actions: setup-php, variables_order and php -S
Subscribe to Linkhub