Skip to content

Commit

Permalink
Merge pull request #101 from wp-cli/add/min-wp
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Jul 16, 2024
2 parents 3ec3e28 + 10f93bf commit 887e066
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/reusable-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
type: string
required: false
default: '5.6'
minimum-wp:
description: 'Minimum WP version to test against.'
type: string
required: false
default: '3.7'

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
Expand Down Expand Up @@ -292,7 +297,7 @@ jobs:
id: set-matrix
run: |
if [[ $FILE_EXISTS == 'true' ]]; then
echo "matrix=$(jq -c '.include |= map(select(.php >= "${{ inputs.minimum-php }}"))' <<< $BASE_MATRIX)" >> $GITHUB_OUTPUT
echo "matrix=$(jq -c '.include |= map(select(.wp == "3.7").wp |= "${{ inputs.minimum-wp }}") | .include |= map(select(.php >= "${{ inputs.minimum-php }}"))' <<< $BASE_MATRIX)" >> $GITHUB_OUTPUT
else
echo "matrix=" >> $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit 887e066

Please sign in to comment.