Skip to content

Commit 06d8430

Browse files
committed
Enable full PR matrix for all automatic workflow runs
- Removed conditional logic that limited PR builds to single source - Now ALWAYS tests all 6 sources (current + 5 PRs) on every run - Applies to: pull_request, push, schedule, and workflow_dispatch - Only exception: custom build_sources via workflow_dispatch input - Provides comprehensive compatibility validation on every trigger
1 parent 52d6a89 commit 06d8430

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/encryption-custom-compatibility.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ jobs:
5050
echo "Event name: ${{ github.event_name }}"
5151
echo "Build sources input: '${{ github.event.inputs.build_sources }}'"
5252
53-
# Use custom build sources if provided, otherwise use defaults based on trigger
53+
# Use custom build sources if provided via workflow_dispatch input
5454
BUILD_SOURCES_INPUT="${{ github.event.inputs.build_sources }}"
5555
5656
if [ -n "$BUILD_SOURCES_INPUT" ] && [ "$BUILD_SOURCES_INPUT" != "" ]; then
5757
BUILD_SOURCES="$BUILD_SOURCES_INPUT"
5858
echo "Using custom build sources from workflow input"
59-
elif [ "${{ github.event_name }}" == "schedule" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
60-
# For scheduled/manual runs: test against multiple PRs for comprehensive validation
59+
else
60+
# Always test against all sources (current + 5 PRs) for comprehensive validation
6161
BUILD_SOURCES='[
6262
{"repository":"${{ github.repository }}","ref":"${{ github.ref }}","source_name":"current"},
6363
{"repository":"Azure/azure-cosmos-dotnet-v3","ref":"refs/pull/5385/head","source_name":"pr-5385"},
@@ -66,11 +66,7 @@ jobs:
6666
{"repository":"Azure/azure-cosmos-dotnet-v3","ref":"refs/pull/5417/head","source_name":"pr-5417"},
6767
{"repository":"Azure/azure-cosmos-dotnet-v3","ref":"refs/pull/5428/head","source_name":"pr-5428"}
6868
]'
69-
echo "Using expanded build matrix with PRs for scheduled/manual run"
70-
else
71-
# For PR/CI builds: only test current branch for fast feedback
72-
BUILD_SOURCES='[{"repository":"${{ github.repository }}","ref":"${{ github.ref }}","source_name":"current"}]'
73-
echo "Using default build source: current repository and branch"
69+
echo "Using full build matrix with all PRs"
7470
fi
7571
7672
echo "build_sources=$BUILD_SOURCES" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)