























@@ -10,6 +10,7 @@ on:
1010type: choice
1111options:
1212 - all
13+ - channel-runtime-boundary
1314 - gateway-runtime-boundary
1415 - plugin-boundary
1516 - plugin-sdk-package-contract
@@ -23,6 +24,7 @@ on:
2324 - ".github/workflows/codeql-critical-quality.yml"
2425 - "packages/plugin-package-contract/**"
2526 - "packages/plugin-sdk/**"
27+ - "src/channels/**"
2628 - "src/gateway/method-scopes.ts"
2729 - "src/gateway/protocol/**"
2830 - "src/gateway/server-methods/**"
@@ -53,6 +55,7 @@ jobs:
5355runs-on: blacksmith-4vcpu-ubuntu-2404
5456timeout-minutes: 5
5557outputs:
58+channel: ${{ steps.detect.outputs.channel }}
5659gateway: ${{ steps.detect.outputs.gateway }}
5760plugin: ${{ steps.detect.outputs.plugin }}
5861plugin_sdk_package: ${{ steps.detect.outputs.plugin_sdk_package }}
@@ -68,12 +71,14 @@ jobs:
6871run: |
6972 set -euo pipefail
707374+ channel=false
7175 gateway=false
7276 plugin=false
7377 plugin_sdk_package=false
7478 provider=false
75797680 if [[ "${EVENT_NAME}" != "pull_request" ]]; then
81+ channel=true
7782 gateway=true
7883 plugin=true
7984 plugin_sdk_package=true
@@ -82,11 +87,15 @@ jobs:
8287 while IFS= read -r file; do
8388 case "${file}" in
8489 .github/codeql/*|.github/workflows/codeql-critical-quality.yml)
90+ channel=true
8591 gateway=true
8692 plugin=true
8793 plugin_sdk_package=true
8894 provider=true
8995 ;;
96+ src/channels/*)
97+ channel=true
98+ ;;
9099 src/gateway/method-scopes.ts|src/gateway/protocol/*|src/gateway/server-methods/*|src/gateway/server-methods.ts|src/gateway/server-methods-list.ts)
91100 gateway=true
92101 ;;
@@ -112,6 +121,7 @@ jobs:
112121 fi
113122114123 {
124+ echo "channel=${channel}"
115125 echo "gateway=${gateway}"
116126 echo "plugin=${plugin}"
117127 echo "plugin_sdk_package=${plugin_sdk_package}"
@@ -187,7 +197,8 @@ jobs:
187197188198channel-runtime-boundary:
189199name: Critical Quality (channel-runtime-boundary)
190-if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all') }}
200+needs: quality-shards
201+if: ${{ needs.quality-shards.outputs.channel == 'true' && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (github.event_name == 'pull_request' || github.event_name != 'workflow_dispatch' || inputs.profile == 'all' || inputs.profile == 'channel-runtime-boundary') }}
191202runs-on: blacksmith-4vcpu-ubuntu-2404
192203timeout-minutes: 25
193204steps:
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。