Skip to content

Commit af1f1b7

Browse files
committed
Enable PR and push triggers for Behave workflow
1 parent c754c28 commit af1f1b7

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/behave-cloudberry.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# - **Primary Test Scope**: `gpMgmt/test/behave/mgmt_utils`
4949
#
5050
# Notes:
51-
# - Trigger mode: manual `workflow_dispatch` only.
51+
# - Trigger mode: push, pull_request, and manual `workflow_dispatch`.
5252
# - Behave tests are split by command to reduce cross-feature environment
5353
# pollution.
5454
# - This workflow currently focuses on single-host CI-compatible Behave tests.
@@ -58,6 +58,11 @@
5858
name: Apache Cloudberry Behave
5959

6060
on:
61+
push:
62+
branches: [main, REL_2_STABLE]
63+
pull_request:
64+
branches: [main, REL_2_STABLE]
65+
types: [opened, synchronize, reopened, edited]
6166
workflow_dispatch:
6267
inputs:
6368
test_selection:
@@ -91,7 +96,7 @@ jobs:
9196
run: |
9297
echo "=== Behave Matrix Preparation Diagnostics ==="
9398
echo "Event type: ${{ github.event_name }}"
94-
echo "Test selection input: '${{ github.event.inputs.test_selection }}'"
99+
echo "Test selection input: '${{ github.event.inputs.test_selection || 'all' }}'"
95100
96101
ALL_BEHAVE_TESTS='{
97102
"include": [
@@ -117,7 +122,7 @@ jobs:
117122
}'
118123
119124
VALID_TESTS=$(echo "$ALL_BEHAVE_TESTS" | jq -r '.include[].test')
120-
IFS=',' read -ra SELECTED_TESTS <<< "${{ github.event.inputs.test_selection }}"
125+
IFS=',' read -ra SELECTED_TESTS <<< "${{ github.event.inputs.test_selection || 'all' }}"
121126
122127
if [[ "${SELECTED_TESTS[*]}" == "all" || -z "${SELECTED_TESTS[*]}" ]]; then
123128
mapfile -t SELECTED_TESTS <<< "$VALID_TESTS"
@@ -508,7 +513,7 @@ jobs:
508513
chmod 1777 "/tmp/cloudberry-cores"
509514
sysctl -w kernel.core_pattern="/tmp/cloudberry-cores/core-%e-%s-%u-%g-%p-%t"
510515
511-
sudo dnf install -y libffi-devel || echo "Warning: failed to install libffi-devel"
516+
dnf install -y libffi-devel || echo "Warning: failed to install libffi-devel"
512517
su - gpadmin -c "pip3 install --user -r ${SRC_DIR}/gpMgmt/requirements-dev.txt || pip install --user -r ${SRC_DIR}/gpMgmt/requirements-dev.txt"
513518
514519
echo "Running features:"

0 commit comments

Comments
 (0)