Commit .env in tests/env-file-tests, bypassing root .gitignore
This commit adds a .gitignore in tests/env-file-tests to allow .env files to be committed. Fix: #937 Signed-off-by: Genzer <732937+Genzer@users.noreply.github.com>
This commit is contained in:
parent
4e9f76768c
commit
67ce900885
|
|
@ -0,0 +1,2 @@
|
|||
ZZVAR1='This value is overwritten by env-file-tests/.env'
|
||||
ZZVAR3='This value is loaded from env-file-tests/.env'
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This overrides the repository root .gitignore (ignoring all .env).
|
||||
# The .env files in this directory are important for the test cases.
|
||||
!.env
|
||||
!project/.env
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ZZVAR1='This value is loaded but should be overwritten'
|
||||
ZZVAR2='This value is loaded from .env in project/ directory'
|
||||
Loading…
Reference in New Issue