Skip to content

Commit

Permalink
run keeper tests in CI to test them
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Apr 18, 2024
1 parent 44ce6ff commit 1bb40d9
Show file tree
Hide file tree
Showing 2 changed files with 259 additions and 27 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,21 +287,23 @@ jobs:
LOG_POLLER_MATRIX_JSON=$(./scripts/buildTestMatrixList.sh ./smoke/log_poller_test.go log_poller ubuntu-latest 1)
echo "LP_JOB_MATRIX_JSON=${LOG_POLLER_MATRIX_JSON}" >> $GITHUB_ENV
# if we running a PR against the develop branch we should only run the automation tests unless we are in the merge group event
if [[ "$GITHUB_EVENT_NAME" == "merge_group" ]]; then
echo "We are in a merge_group event, run both automation and keepers tests"
echo "AUTOMATION_JOB_MATRIX_JSON=${COMBINED_ARRAY}" >> $GITHUB_ENV
else
echo "we are not in a merge_group event, if this is a PR to develop run only automation tests, otherwise run everything because we could be running against a release branch"
target_branch=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.base.ref)
if [[ "$target_branch" == "develop" ]]; then
echo "only run automation tests"
echo "AUTOMATION_JOB_MATRIX_JSON=${MATRIX_JSON_AUTOMATION}" >> $GITHUB_ENV
else
echo "run both automation and keepers tests"
echo "AUTOMATION_JOB_MATRIX_JSON=${COMBINED_ARRAY}" >> $GITHUB_ENV
fi
fi
echo "AUTOMATION_JOB_MATRIX_JSON=${COMBINED_ARRAY}" >> $GITHUB_ENV
# # if we running a PR against the develop branch we should only run the automation tests unless we are in the merge group event
# if [[ "$GITHUB_EVENT_NAME" == "merge_group" ]]; then
# echo "We are in a merge_group event, run both automation and keepers tests"
# echo "AUTOMATION_JOB_MATRIX_JSON=${COMBINED_ARRAY}" >> $GITHUB_ENV
# else
# echo "we are not in a merge_group event, if this is a PR to develop run only automation tests, otherwise run everything because we could be running against a release branch"
# target_branch=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.base.ref)
# if [[ "$target_branch" == "develop" ]]; then
# echo "only run automation tests"
# echo "AUTOMATION_JOB_MATRIX_JSON=${MATRIX_JSON_AUTOMATION}" >> $GITHUB_ENV
# else
# echo "run both automation and keepers tests"
# echo "AUTOMATION_JOB_MATRIX_JSON=${COMBINED_ARRAY}" >> $GITHUB_ENV
# fi
# fi
eth-smoke-tests-matrix-automation:
if: ${{ !contains(join(github.event.pull_request.labels.*.name, ' '), 'skip-smoke-tests') }}
Expand Down
Loading

0 comments on commit 1bb40d9

Please sign in to comment.