@@ -93,20 +93,19 @@ jobs:
9393 run : |
9494 ./.github/scripts/oss-diff.sh ${{ steps.determine-branch.outputs.BRANCH }} HEAD
9595
96+ verify-changes :
97+ name : Verify doc-ui only PRs
98+ uses : ./.github/workflows/verify_changes.yml
99+
96100 test-go :
97101 name : Run Go tests
98102 needs :
99103 - setup
100- # Don't run this job for PR branches starting with:
101- # 'ui/', 'backport/ui/', 'docs/', or 'backport/docs/'
102- # OR
103- # the 'docs' label is present
104+ - verify-changes
105+ # Don't run this job for docs/ui only PRs
104106 if : |
105- !startsWith(github.head_ref, 'ui/') &&
106- !startsWith(github.head_ref, 'backport/ui/') &&
107- !startsWith(github.head_ref, 'docs/') &&
108- !startsWith(github.head_ref, 'backport/docs/') &&
109- !contains(github.event.pull_request.labels.*.name, 'docs')
107+ needs.verify-changes.outputs.is_docs_change == 'false' &&
108+ needs.verify-changes.outputs.is_ui_change == 'false'
110109 uses : ./.github/workflows/test-go.yml
111110 with :
112111 # The regular Go tests use an extra runner to execute the
@@ -124,17 +123,12 @@ jobs:
124123 name : Run Go tests with data race detection
125124 needs :
126125 - setup
127- # Don't run this job for PR branches starting with:
128- # 'ui/', 'backport/ui/', 'docs/', or 'backport/docs/'
129- # OR
130- # the 'docs' label is present
126+ - verify-changes
127+ # Don't run this job for docs/ui only PRs
131128 if : |
132129 github.event.pull_request.draft == false &&
133- !startsWith(github.head_ref, 'ui/') &&
134- !startsWith(github.head_ref, 'backport/ui/') &&
135- !startsWith(github.head_ref, 'docs/') &&
136- !startsWith(github.head_ref, 'backport/docs/') &&
137- !contains(github.event.pull_request.labels.*.name, 'docs')
130+ needs.verify-changes.outputs.is_docs_change == 'false' &&
131+ needs.verify-changes.outputs.is_ui_change == 'false'
138132 uses : ./.github/workflows/test-go.yml
139133 with :
140134 total-runners : 16
@@ -152,20 +146,15 @@ jobs:
152146
153147 test-go-fips :
154148 name : Run Go tests with FIPS configuration
155- # Only run this job for the enterprise repo if the PR branch doesn't start with:
156- # 'ui/', 'backport/ui/', 'docs/', or 'backport/docs/'
157- # OR
158- # the 'docs' label is not present
149+ # Only run this job for the enterprise repo if the PR is not docs/ui only
159150 if : |
160151 github.event.pull_request.draft == false &&
161152 needs.setup.outputs.enterprise == 1 &&
162- !startsWith(github.head_ref, 'ui/') &&
163- !startsWith(github.head_ref, 'backport/ui/') &&
164- !startsWith(github.head_ref, 'docs/') &&
165- !startsWith(github.head_ref, 'backport/docs/') &&
166- !contains(github.event.pull_request.labels.*.name, 'docs')
153+ needs.verify-changes.outputs.is_docs_change == 'false' &&
154+ needs.verify-changes.outputs.is_ui_change == 'false'
167155 needs :
168156 - setup
157+ - verify-changes
169158 uses : ./.github/workflows/test-go.yml
170159 with :
171160 total-runners : 16
0 commit comments