Skip to content

Commit b841137

Browse files
authored
Test shipped version of the integration when running test agent workflows (#23378)
* don't use --base flag if running test agent workflow * Also cover test-agent-target * persistent context env var
1 parent 9e32bb5 commit b841137

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/actions/setup-test-target-scripts/src/run-e2e-tests.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ else
2121
export DDEV_TEST_ENABLE_TRACING="0"
2222
fi
2323

24-
# Set E2E flags based on repo (latest always uses --base --new-env)
25-
if [[ "$INPUT_REPO" == 'core' || "$INPUT_IS_LATEST" == 'true' ]]; then
24+
# Set E2E flags based on context and repo
25+
if [[ "$INPUT_CONTEXT" == test-agent* ]]; then
26+
E2E_FLAGS="--new-env"
27+
elif [[ "$INPUT_REPO" == 'core' || "$INPUT_IS_LATEST" == 'true' ]]; then
2628
E2E_FLAGS="--base --new-env"
2729
else
2830
E2E_FLAGS="--dev"

.github/actions/setup-test-target-scripts/src/setup-test-env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ fi
115115
echo "INPUT_MINIMUM_BASE_PACKAGE=${INPUT_MINIMUM_BASE_PACKAGE:-false}"
116116
echo "INPUT_PYTEST_ARGS=${INPUT_PYTEST_ARGS:-}"
117117
echo "INPUT_IS_FORK=${INPUT_IS_FORK:-false}"
118+
echo "INPUT_CONTEXT=${INPUT_CONTEXT:-standard}"
118119
} >> "$GITHUB_ENV"
119120

120121
# Override with custom vars if provided

0 commit comments

Comments
 (0)