Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed browser tests running in docker compose (#21974)
ref https://linear.app/ghost/issue/ENG-1968/get-browser-tests-working-in-docker - When running browser tests in docker compose, the `stripe listen` command was not outputting the API key from the environment, because it's expecting that you've already run `stripe login` to authenticate with stripe. It only outputs the API key in the command line in CI. - This isn't convenient/practical to do in docker, and it's much easier to supply the API key as an environment variable, so this changes the logic to use the API key from the command line when running in docker _or_ CI.
- Loading branch information