Skip to content

Commit ee91bde

Browse files
committed
Add wp-version input to setup-wordpress action
Introduces a 'wp-version' input to the setup-wordpress composite action, allowing the WordPress version to be specified (defaulting to 6.8). Updates the schema-linter workflow to use this input, improving flexibility for WordPress version management in CI.
1 parent 56d9b6c commit ee91bde

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/actions/setup-wordpress/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Set up WordPress
22
description: Sets up WordPress. Assumes mariadb is available as a service.
33

4+
inputs:
5+
wp-version:
6+
description: 'WordPress version to install'
7+
required: false
8+
default: '6.8'
9+
410
runs:
511
using: 'composite'
612
steps:
@@ -23,6 +29,8 @@ runs:
2329

2430
- name: Setup WordPress
2531
shell: bash
32+
env:
33+
WP_VERSION: ${{ inputs.wp-version }}
2634
run: |
2735
cp .env.dist .env
2836
composer run install-test-env

.github/workflows/schema-linter.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838

3939
- name: Setup WordPress
4040
uses: ./.github/actions/setup-wordpress
41+
with:
42+
wp-version: '6.8'
4143

4244
- name: Setup GraphQL Schema Linter
4345
run: npm install -g graphql-schema-linter@^3.0 graphql@^16
@@ -77,11 +79,7 @@ jobs:
7779
name: schema.graphql
7880
path: /tmp/schema.graphql
7981

80-
# The Schema Inspector step is allowed to fail (continue-on-error: true) to avoid blocking the workflow on schema breaking changes.
81-
# This is intentional, as schema diffs are currently monitored manually due to ongoing compatibility work with WordPress 6.9.
82-
# Please review any breaking changes reported by this step before merging or releasing.
8382
- name: Run Schema Inspector
84-
continue-on-error: true
8583
run: |
8684
# This schema and previous release schema
8785
node_modules/.bin/graphql-inspector diff /tmp/${{ steps.get-latest-tag.outputs.tag }}.graphql /tmp/schema.graphql

0 commit comments

Comments
 (0)