Skip to content

Commit 2b54d0f

Browse files
committed
Use a workflow input to control running GB checks
1 parent a99f399 commit 2b54d0f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/reusable-test-core-build-process.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ on:
2626
required: false
2727
type: 'boolean'
2828
default: false
29+
check-gutenberg-functions:
30+
description: 'Whether to check for the presence of functions prefixed with gutenberg_.'
31+
required: false
32+
type: boolean
33+
default: false
2934
save-build:
3035
description: 'Whether to save a ZIP of built WordPress as an artifact.'
3136
required: false
@@ -109,7 +114,8 @@ jobs:
109114
run: npm ci
110115

111116
- name: Check for PHP functions with the gutenberg_ prefix
112-
run: npm run grunt prevent-gutenberg-functions || true
117+
if: ${{ inputs.check-gutenberg-functions }}
118+
run: npm run grunt prevent-gutenberg-functions
113119

114120
- name: Run Emoji precommit task
115121
if: ${{ inputs.test-emoji }}

.github/workflows/test-build-processes.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
os: [ 'ubuntu-24.04' ]
6161
directory: [ 'src', 'build' ]
6262
test-certificates: [ true ]
63+
check-gutenberg-functions: [ true ]
6364
include:
6465
# Only prepare artifacts for Playground once.
6566
- os: 'ubuntu-24.04'

0 commit comments

Comments
 (0)