Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use --env-file argument instead of sourcing .env files
  • Loading branch information
uglide committed Feb 3, 2026
commit 95818180c62cf02e22591f1ac96d3d77c950d4a7
10 changes: 3 additions & 7 deletions .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,13 @@ runs:

# Load environment variables from version-specific file
ENV_FILE="tests/dockers/.env.v${REDIS_VERSION}"
if [[ -f "$ENV_FILE" ]]; then
echo "Loading environment from $ENV_FILE"
set -a
source "$ENV_FILE"
set +a
else
if [[ ! -f "$ENV_FILE" ]]; then
echo "Environment file not found: $ENV_FILE"
exit 1
fi
echo "Using environment file: $ENV_FILE"

docker compose --profile all -f tests/dockers/docker-compose.yml up -d --build
docker compose --env-file "$ENV_FILE" --profile all -f tests/dockers/docker-compose.yml up -d --build
echo "::endgroup::"
shell: bash

Expand Down
Loading