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:
Genzer 2024-06-10 15:17:03 +07:00 committed by Povilas Kanapickas
parent 4e9f76768c
commit 67ce900885
3 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,2 @@
ZZVAR1='This value is overwritten by env-file-tests/.env'
ZZVAR3='This value is loaded from env-file-tests/.env'

4
tests/env-file-tests/.gitignore vendored Normal file
View File

@ -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

View File

@ -0,0 +1,2 @@
ZZVAR1='This value is loaded but should be overwritten'
ZZVAR2='This value is loaded from .env in project/ directory'