Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .github/workflows/codeception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,26 @@ jobs:
${{ github.event.pull_request.head.sha }}
fi

- name: Detect changed plugins with quality config
- name: Detect changed plugins with test config
id: detect
env:
PLUGINS: ${{ steps.plugin.outputs.plugins }}
run: |
if [ -z "${{ steps.plugin.outputs.slug }}" ]; then
echo "No plugin slug detected"
echo "plugins=[]" >> $GITHUB_OUTPUT
echo "has-plugins=false" >> $GITHUB_OUTPUT
exit 0
fi

PLUGIN="${{ steps.plugin.outputs.slug }}"

if [ -f "plugins/$PLUGIN/codeception.dist.yml" ]; then
echo "plugins=[\"$PLUGIN\"]" >> $GITHUB_OUTPUT
echo "has-plugins=true" >> $GITHUB_OUTPUT
echo "✅ Found codeception.dist.yml for plugin: $PLUGIN"
# Test every changed plugin that has a codeception.dist.yml, not just the first one.
WITH_TESTS="[]"
for plugin in $(echo "${PLUGINS:-[]}" | jq -r '.[]'); do
if [ -f "plugins/$plugin/codeception.dist.yml" ]; then
echo "✅ Found codeception.dist.yml for plugin: $plugin"
WITH_TESTS=$(echo "$WITH_TESTS" | jq -c --arg p "$plugin" '. + [$p]')
else
echo "ℹ️ No codeception.dist.yml found for plugin: $plugin, skipping automated tests"
fi
done
echo "plugins=$WITH_TESTS" >> "$GITHUB_OUTPUT"
if [ "$WITH_TESTS" = "[]" ]; then
echo "has-plugins=false" >> "$GITHUB_OUTPUT"
else
echo "plugins=[]" >> $GITHUB_OUTPUT
echo "has-plugins=false" >> $GITHUB_OUTPUT
echo "ℹ️ No codeception.dist.yml found for plugin: $PLUGIN, skipping automated tests"
echo "has-plugins=true" >> "$GITHUB_OUTPUT"
fi

continuous_integration:
Expand Down
2 changes: 1 addition & 1 deletion plugins/hwp-previews/hwp-previews.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Text Domain: hwp-previews
* Domain Path: /languages
* Requires at least: 6.0
* Tested up to: 6.9
* Tested up to: 7.1
* Requires PHP: 8.2
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down
2 changes: 1 addition & 1 deletion plugins/hwp-previews/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: colin-murphy, joefusco, thdespou, ahuseyn, wpengine
Tags: GraphQL, Headless, Previews, WPGraphQL, React, Rest
Requires at least: 6.0
Tested up to: 6.9
Tested up to: 7.1
Requires PHP: 8.2
Stable tag: 1.0.2
License: GPLv2 or later
Expand Down
Loading