Skip to content

Commit

Permalink
Use more robust env var
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Feb 4, 2025
1 parent 83e4b32 commit 6567cef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:

env:
MIX_ENV: test
PHX_CI: true

strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion installer/lib/phx_new/generator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ defmodule Phx.New.Generator do
# we want to treat it like regular env for end-user testing purposes
inside_docker_env? =
Keyword.get_lazy(opts, :inside_docker_env, fn ->
if System.get_env("GITHUB_ACTIONS") do
if System.get_env("PHX_CI") do
false
else
File.exists?("/.dockerenv")
Expand Down

0 comments on commit 6567cef

Please sign in to comment.