Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
465 commits
Select commit Hold shift + click to select a range
e8f1f65
move close popover button a bit
ilicfilip Nov 26, 2025
3014883
remove old onboarding / welcome
ilicfilip Nov 26, 2025
7d068b6
animated gauge & branding badge
ilicfilip Nov 26, 2025
02148cf
basic input styles
ilicfilip Nov 26, 2025
daecd3a
placeholders, less vars (for now)
ilicfilip Nov 26, 2025
8f39773
"more tasks" step tweaks
ilicfilip Nov 26, 2025
b08c0d0
WIP: accessibility
ilicfilip Nov 26, 2025
edfa7af
more tasks icon(s)
ilicfilip Nov 26, 2025
5cda682
remove .prpl-popover to prevent conflicts
ilicfilip Nov 26, 2025
42ec90a
more styles tweaks
ilicfilip Nov 27, 2025
46e3580
wrap labels in <div>
ilicfilip Nov 27, 2025
3e876cf
more styling
ilicfilip Nov 27, 2025
e253b8c
adjust file upload hints
ilicfilip Nov 27, 2025
cfde143
template rename
ilicfilip Nov 27, 2025
48d2357
adjust text
ilicfilip Nov 27, 2025
b54c766
reformatting
ilicfilip Nov 27, 2025
f10ac87
slight settings step refactor
ilicfilip Nov 27, 2025
ef5d5c2
one more text adjustment
ilicfilip Nov 27, 2025
4f6dd79
wip: checkbox toggles
ilicfilip Nov 27, 2025
c6850e6
WIP custom CSS checkboxes & radios
ilicfilip Nov 27, 2025
71647a4
templates for custom inputs
ilicfilip Nov 28, 2025
cc1b2ea
meh, update for previous commit
ilicfilip Nov 28, 2025
0455e11
move privacy checkbox
ilicfilip Nov 28, 2025
7129d51
add arrow icon
ilicfilip Nov 28, 2025
47237a8
prefix (some) CSS selectors
ilicfilip Nov 28, 2025
bafbe53
wip mobile
ilicfilip Nov 28, 2025
7b3f1d3
increase max-width on mobile a bit
ilicfilip Nov 28, 2025
6261308
change mobile breakpoint
ilicfilip Nov 28, 2025
07e4084
adjust badge max width on mobile
ilicfilip Nov 28, 2025
676178f
mobile bottom bar spacing
ilicfilip Nov 28, 2025
c54b2fb
mobile step label
ilicfilip Nov 28, 2025
8b42511
CSS vars
ilicfilip Nov 28, 2025
f637ddd
more CSS vars
ilicfilip Nov 28, 2025
d04f3e5
image icon
ilicfilip Dec 1, 2025
c95b214
change composer namespace
ilicfilip Dec 1, 2025
bfc70fc
composer update
ilicfilip Dec 1, 2025
2dcbaa7
Merge pull request #716 from ProgressPlanner/filip/composer-namespace
jdevalk Dec 1, 2025
72d86cf
replace icons
ilicfilip Dec 1, 2025
95dd5a4
slight color change
ilicfilip Dec 1, 2025
e7ed405
phpstan fixes
ilicfilip Dec 1, 2025
2ec3852
skip celebration for onboard tasks
ilicfilip Dec 1, 2025
536b11e
define font-family
ilicfilip Dec 1, 2025
9626f52
display "First task" in tour nav even if it was completed
ilicfilip Dec 1, 2025
37441fc
remove title which is no longer used
ilicfilip Dec 1, 2025
bdfc9bf
Merge branch 'develop' into ari/tests-2025-11-17
aristath Dec 2, 2025
907f6f1
Fix phpstan
aristath Dec 2, 2025
3ed18b0
More phpstan fixes
aristath Dec 2, 2025
76b3d12
Merge branch 'main' into develop
aristath Dec 2, 2025
8167fed
phpstan
aristath Dec 2, 2025
d29cf4f
Merge remote-tracking branch 'origin/develop' into develop
aristath Dec 2, 2025
89398f7
Merge branch 'develop' into filip/new-onboard
aristath Dec 2, 2025
1cac97d
Merge branch 'develop' into ari/tests-2025-11-17
aristath Dec 2, 2025
0ad82fa
default value, playground test
ilicfilip Dec 2, 2025
94e124a
Merge branch 'develop' into filip/v110/fix-multiple-file-includes
ilicfilip Dec 2, 2025
4a06dbf
Recognize SureRank as an SEO plugin
ilicfilip Dec 2, 2025
4838369
implement new required indicator
ilicfilip Dec 2, 2025
211adb1
add button on the PP dashboard page, when PP is not accepted
ilicfilip Dec 3, 2025
5fd4d18
change button text
ilicfilip Dec 3, 2025
6dc671b
dont duplicate license generate code
ilicfilip Dec 4, 2025
976da39
Merge branch 'develop' into filip/v110/page-interactive-tasks
ilicfilip Dec 4, 2025
1749352
set homepage
ilicfilip Dec 4, 2025
dcd71db
WIP: CSS vars
ilicfilip Dec 8, 2025
1f61f82
more color vars
ilicfilip Dec 9, 2025
475b2e3
use our enqueue methods
ilicfilip Dec 9, 2025
9846216
bump "Tested up to" version
ilicfilip Dec 11, 2025
6e0edec
Apply suggestion from @aristath
aristath Dec 11, 2025
8c0fd01
match the version in readme.txt
ilicfilip Dec 11, 2025
51ef92c
Merge pull request #721 from ProgressPlanner/filip/bump-wp-version
ilicfilip Dec 11, 2025
1b7f018
fix color for #prpl-suggested-tasks-list button
ilicfilip Dec 11, 2025
bfff3d3
Merge pull request #715 from ProgressPlanner/filip/v110/fix-multiple-…
jdevalk Dec 12, 2025
f621f19
Merge branch 'develop' into filip/new-onboard
ilicfilip Dec 12, 2025
40be0a8
Merge pull request #723 from ProgressPlanner/filip/fix-link-color
jdevalk Dec 12, 2025
3c52298
Merge branch 'develop' into filip/surerank-seo
ilicfilip Dec 12, 2025
65ec038
Fix CS
jdevalk Dec 12, 2025
442c574
Merge branch 'develop' into ari/tests-2025-11-17
jdevalk Dec 12, 2025
9944070
Merge pull request #718 from ProgressPlanner/filip/surerank-seo
jdevalk Dec 12, 2025
d1c2200
Merge branch 'develop' into filip/aaa-option-optimizer
ilicfilip Dec 12, 2025
588f2ce
add filter for autoloaded_options_threshold
ilicfilip Dec 12, 2025
2520780
make task interactive
ilicfilip Dec 12, 2025
909a6aa
add priority expclitly
ilicfilip Dec 12, 2025
6a1d51e
Merge branch 'develop' into filip/new-onboard
ilicfilip Dec 12, 2025
5e39957
set the autoloaded_options_threshold to 500
ilicfilip Dec 12, 2025
4441b21
changelog
ilicfilip Dec 12, 2025
8f85333
bump min WP version in tests
ilicfilip Dec 12, 2025
efe83af
Merge pull request #271 from ProgressPlanner/filip/aaa-option-optimizer
jdevalk Dec 12, 2025
e84ed1e
Merge pull request #712 from ProgressPlanner/ari/tests-2025-11-17
jdevalk Dec 12, 2025
fe76c47
split "more tasks" step
ilicfilip Dec 12, 2025
03a9214
Merge branch 'develop' into filip/new-onboard
ilicfilip Dec 12, 2025
f2597da
set action label
ilicfilip Dec 12, 2025
be60f6c
debug admin bar, only for admins if PRPL_DEBUG is true
ilicfilip Dec 12, 2025
83c2522
dont delete onboarding progress
ilicfilip Dec 12, 2025
0f92e34
onboarding trigger
ilicfilip Dec 12, 2025
bf8c8d8
use is_debug_mode_enabled from base class
ilicfilip Dec 12, 2025
5fb8856
prefix fill values :facepalm:
ilicfilip Dec 12, 2025
f0a5813
delay initing until 'init', so user is set (tests fail)
ilicfilip Dec 12, 2025
c8ac2c6
slash it
ilicfilip Dec 12, 2025
457787c
Merge branch 'develop' into filip/v110/page-interactive-tasks
ilicfilip Dec 12, 2025
00b1f5f
dont trigger onboarding for users who are upgrading
ilicfilip Dec 12, 2025
a6fc827
no need for "Set Home Page" task, we detect that correctly
ilicfilip Dec 12, 2025
2d213f0
tweak page description
ilicfilip Dec 12, 2025
9e20cd4
adjust description again
ilicfilip Dec 12, 2025
c8320f7
small cleanup
ilicfilip Dec 15, 2025
2ec7a8a
dont show nudge & dont clear onboard progress
ilicfilip Dec 15, 2025
4861603
update the 'test_is_debug_mode_enabled' test
ilicfilip Dec 15, 2025
a848013
remove "Settings page" & "Fill in the settings page" task
ilicfilip Dec 15, 2025
19f6490
fix failing tests
aristath Dec 15, 2025
d47e795
fix get task command & add tests
ilicfilip Dec 15, 2025
f10aa34
skip tests if WP CLI is not available
ilicfilip Dec 15, 2025
7ef39be
Merge pull request #702 from ProgressPlanner/filip/v110/page-interact…
aristath Dec 15, 2025
34205f2
Merge branch 'develop' into filip/new-onboard
ilicfilip Dec 15, 2025
ac63ccd
read checkbox state from DOM, if not saved previously
ilicfilip Dec 15, 2025
476c5cd
register branded site earlier
ilicfilip Dec 15, 2025
59ab21a
Merge branch 'filip/register-branded-site-earlier' into filip/new-onb…
ilicfilip Dec 15, 2025
a7da433
tweak onboarding for branded installs
ilicfilip Dec 15, 2025
9bce8a6
delete user meta, which redirects to PP dashboard page
ilicfilip Dec 15, 2025
45bc868
Merge pull request #726 from ProgressPlanner/filip/register-branded-s…
jdevalk Dec 15, 2025
6b17ffe
Add wp-cli to php on phpunit tests
jdevalk Dec 15, 2025
f5665f2
Don't run on every push, just on pull requests
jdevalk Dec 15, 2025
fa6513c
Don't run on every push, just on pull requests - more tasks
jdevalk Dec 15, 2025
b5b7565
Merge branch 'develop' into filip/wp-cli-tests
aristath Dec 16, 2025
dd2c408
Merge branch 'develop' into filip/delete-redirect-meta
ilicfilip Dec 16, 2025
2681f69
try to pass WP path in CI correctly
ilicfilip Dec 16, 2025
7c29004
try creating wp-config.php
ilicfilip Dec 16, 2025
6af42a0
adjust the table prefix
ilicfilip Dec 16, 2025
0ff3abb
activate the plugin, in test WP instance
ilicfilip Dec 16, 2025
05058f0
Merge branch 'develop' into filip/new-onboard
ilicfilip Dec 16, 2025
b5c6d4c
use wp-cli as composer dependency
ilicfilip Dec 16, 2025
eb2cc71
Merge pull request #725 from ProgressPlanner/filip/wp-cli-tests
ilicfilip Dec 16, 2025
ab518f5
Merge branch 'develop' into filip/new-onboard
ilicfilip Dec 16, 2025
00580ff
Merge branch 'develop' into filip/delete-redirect-meta
ilicfilip Dec 16, 2025
b59a3aa
tweak when onboarding is triggered, move debug actions to debug tools
ilicfilip Dec 16, 2025
800933d
a bit more styling for site icon & add "remove icon" button
ilicfilip Dec 16, 2025
5ad3b7e
Merge pull request #727 from ProgressPlanner/filip/delete-redirect-meta
ilicfilip Dec 16, 2025
b715154
Merge branch 'develop' into filip/new-onboard
ilicfilip Dec 16, 2025
ba98a72
change onboarding e2e test
ilicfilip Dec 16, 2025
c9167f1
onboard wizard tests
ilicfilip Dec 16, 2025
56fb315
click on the label, since we're using custom checkboxes
ilicfilip Dec 16, 2025
4f9dffc
more 2e2 tweaks
ilicfilip Dec 16, 2025
e7323c4
Merge pull request #714 from ProgressPlanner/filip/new-onboard
ilicfilip Dec 16, 2025
d9f4ce3
When we're acting as a host, move the menu item to position 0
jdevalk Dec 16, 2025
e2f692f
Saving helps
jdevalk Dec 16, 2025
1c6684b
Fix PHP 7.4 linting issue
jdevalk Dec 16, 2025
523a49d
remove "default login destination"
ilicfilip Dec 17, 2025
d23535b
prevent logo overflow
ilicfilip Dec 17, 2025
3657119
improve upgrade tasks check for fresh installs, covers branded sites
ilicfilip Dec 17, 2025
e442d25
Merge pull request #730 from ProgressPlanner/filip/onboarding-tweaks
ilicfilip Dec 24, 2025
4157bd4
reverse onboarding filter logic
ilicfilip Dec 24, 2025
11f4eda
fix-cs
ilicfilip Dec 24, 2025
2c5d373
Merge pull request #733 from ProgressPlanner/filip/reverse-filter-logic
ilicfilip Dec 24, 2025
61c1241
delay onboarding init a bit
ilicfilip Dec 26, 2025
3fbf691
update playground "toggle onboarding"
ilicfilip Dec 26, 2025
f82660b
we just need to trigger "show onboarding", no need to hide it anymore
ilicfilip Dec 26, 2025
4be93d9
new method for deleting onboard progress
ilicfilip Dec 26, 2025
b2a33c1
reload the page on onboarding close, if user is on PP dashboard page
ilicfilip Dec 26, 2025
5c0f607
update reload condition
ilicfilip Dec 26, 2025
583be3c
Merge pull request #736 from ProgressPlanner/filip/playground-onboarding
ilicfilip Dec 26, 2025
14df56c
e2e tests refactor
ilicfilip Dec 26, 2025
6236246
update tests
ilicfilip Dec 27, 2025
84bb62b
more WIP
ilicfilip Dec 27, 2025
67cb3cb
Fix year-week boundary bug
ilicfilip Dec 30, 2025
e8148c7
Always reuse if server is already running
ilicfilip Dec 30, 2025
1ed8e53
tabs not spaces
ilicfilip Dec 30, 2025
ea1b94d
Run Yoast tests in parallel with main e2e tests
ilicfilip Dec 30, 2025
4ff50a1
Retry CI
ilicfilip Dec 30, 2025
28db097
Exclude direct_file_access check from plugin-check
ilicfilip Dec 30, 2025
59062f5
Bump plugin-check-action to v1.1.4
ilicfilip Dec 30, 2025
da7d5da
Merge pull request #739 from ProgressPlanner/filip/exclude-direct-fil…
ilicfilip Dec 30, 2025
44255fe
Merge branch 'develop' into filip/2e2-tests-refactor
ilicfilip Dec 30, 2025
a3e6e8b
Merge branch 'develop' into filip/fix-year-week-boundary-bug
ilicfilip Dec 30, 2025
f02be1e
remove interactive popover custom positioning
ilicfilip Jan 12, 2026
a1cb589
Merge pull request #740 from ProgressPlanner/filip/remove-popover-pos…
ilicfilip Jan 12, 2026
f486b60
onboarding design tweaks
ilicfilip Jan 12, 2026
872ba3e
Merge branch 'develop' into filip/2e2-tests-refactor
ilicfilip Jan 12, 2026
967e80b
Merge branch 'develop' into filip/fix-year-week-boundary-bug
ilicfilip Jan 12, 2026
4e9227c
Merge branch 'develop' into jdv/menu-position
ilicfilip Jan 12, 2026
c78c74e
update for #740
ilicfilip Jan 12, 2026
f07b566
Merge pull request #742 from ProgressPlanner/filip/update-for-740
ilicfilip Jan 12, 2026
5d8460e
Merge branch 'develop' into filip/2e2-tests-refactor
ilicfilip Jan 12, 2026
35b00e2
Merge branch 'develop' into jdv/menu-position
ilicfilip Jan 12, 2026
da0062c
Merge branch 'develop' into filip/onboarding-tweaks
ilicfilip Jan 12, 2026
7eca0af
add description for set timezone & site locale tasks
ilicfilip Jan 12, 2026
644fb83
translatable of course
ilicfilip Jan 12, 2026
8783571
set base font size for popover and replace rem with em unit
ilicfilip Jan 12, 2026
1d41060
better to use px unit
ilicfilip Jan 12, 2026
3273bd0
safe guards for plugin update
ilicfilip Jan 13, 2026
ec28df7
add extra sentence to the "what's what" step
ilicfilip Jan 14, 2026
f0e845f
Merge pull request #743 from ProgressPlanner/filip/safeguards-for-plu…
ilicfilip Jan 14, 2026
d93085f
Merge branch 'develop' into filip/2e2-tests-refactor
ilicfilip Jan 14, 2026
a66dfd7
Merge branch 'develop' into filip/fix-year-week-boundary-bug
ilicfilip Jan 14, 2026
6903639
use 'core-siteicon' for snooze test, settings-saved is removed
ilicfilip Jan 14, 2026
6abe3ce
fix interactive task resubmission & 'set valuable post types' condition
ilicfilip Jan 14, 2026
8a219fa
Merge pull request #744 from ProgressPlanner/filip/fix-interactive-re…
ilicfilip Jan 14, 2026
bf2d64f
Merge branch 'develop' into filip/onboarding-tweaks
ilicfilip Jan 16, 2026
e169067
Merge pull request #741 from ProgressPlanner/filip/onboarding-tweaks
ilicfilip Jan 16, 2026
9250ab6
Merge branch 'develop' into filip/fix-year-week-boundary-bug
aristath Jan 20, 2026
e8e4fb9
Merge pull request #738 from ProgressPlanner/filip/fix-year-week-boun…
aristath Jan 20, 2026
6584e50
WIP: Add sidebar to the site-editor when editing a post
aristath Jan 20, 2026
808d101
meh, handling some edge-cases
aristath Jan 20, 2026
af89a16
update the dependencies
aristath Jan 20, 2026
031a487
more edge cases
aristath Jan 20, 2026
6dc9e65
more tweaks
aristath Jan 20, 2026
301c7a6
Merge branch 'develop' into ari/site-editor-sidebar
aristath Jan 20, 2026
5899a9d
Update assets/js/editor.js
aristath Jan 20, 2026
beaee8b
fix issues identified by copilot
aristath Jan 20, 2026
d5f7201
Address more of copilot's concerns
aristath Jan 20, 2026
f32c016
Fix errors in the editor
aristath Jan 21, 2026
7fba9cc
Conditionally show the icon
aristath Jan 21, 2026
4b77284
cleanup
aristath Jan 21, 2026
e861de1
Merge pull request #746 from ProgressPlanner/ari/site-editor-sidebar
aristath Jan 21, 2026
fc8a8ea
Check if the progress_planner function exists before adding it
aristath Jan 22, 2026
e3959e9
Merge branch 'develop' into filip/2e2-tests-refactor
ilicfilip Jan 22, 2026
aadf358
test breaking test
ilicfilip Jan 22, 2026
ad489cc
Revert "test breaking test"
ilicfilip Jan 22, 2026
59d3148
try breaking another test
ilicfilip Jan 22, 2026
89b373e
Revert "try breaking another test"
ilicfilip Jan 22, 2026
d0d3bd0
Add `locale` param to the lessons endpoint (filterable)
aristath Jan 23, 2026
8fc4994
correct title for the content badge group in popover
ilicfilip Jan 23, 2026
9ce17d1
js docblock spacing
ilicfilip Jan 23, 2026
2e79cec
Merge pull request #747 from ProgressPlanner/filip/correct-popover-ba…
ilicfilip Jan 23, 2026
dd8b25a
Fix header logo sizing and baseline gap
ilicfilip Jan 23, 2026
f219622
Merge branch 'develop' into filip/2e2-tests-refactor
ilicfilip Jan 24, 2026
0e34b79
Revert to old onboarding system
ilicfilip Jan 26, 2026
8df88a1
use admin menu icon as editor icon as well
ilicfilip Jan 27, 2026
2014cf1
try to fix plugin check test
ilicfilip Jan 27, 2026
abec75d
Merge pull request #748 from ProgressPlanner/filip/fix-header-logo-gap
aristath Jan 27, 2026
eff059c
Merge pull request #750 from ProgressPlanner/filip/editor-icon
aristath Jan 27, 2026
ddf7740
Merge branch 'develop' into filip/fix-plugin-check-test
ilicfilip Jan 27, 2026
9f1295a
Merge branch 'develop' into filip/revert-old-onboarding
ilicfilip Jan 27, 2026
ec957d6
add return type, to fix phpstan
ilicfilip Jan 27, 2026
62b6482
fix phpunit test
ilicfilip Jan 27, 2026
5e09e12
dont revert "Fix year-week boundary bug" PR
ilicfilip Jan 28, 2026
c7420f6
more cherry picking
ilicfilip Jan 28, 2026
89d3339
add comment back as well
ilicfilip Jan 28, 2026
e58b5df
Merge pull request #751 from ProgressPlanner/filip/fix-plugin-check-test
ilicfilip Jan 28, 2026
af1badf
Merge branch 'develop' into filip/revert-old-onboarding
ilicfilip Jan 28, 2026
b38b9db
Merge branch 'develop' into filip/2e2-tests-refactor
ilicfilip Jan 28, 2026
c71f57e
Merge branch 'develop' into jdv/menu-position
ilicfilip Jan 30, 2026
f1b6c24
add 'prpl_lesson_locale' filter to tests
ilicfilip Jan 30, 2026
0a75dda
Merge pull request #752 from ProgressPlanner/filip/fix-failing-test
ilicfilip Jan 30, 2026
15c20fb
Merge branch 'develop' into jdv/menu-position
ilicfilip Jan 30, 2026
0f7579c
Merge branch 'develop' into filip/2e2-tests-refactor
ilicfilip Jan 30, 2026
ba8e407
Merge pull request #728 from ProgressPlanner/jdv/menu-position
ilicfilip Jan 30, 2026
f142038
Merge branch 'develop' into filip/revert-old-onboarding
ilicfilip Jan 30, 2026
29cf327
add more tasks tests
ilicfilip Feb 2, 2026
445224d
localize sidebar name
ilicfilip Feb 2, 2026
628ba65
Merge pull request #753 from ProgressPlanner/filip/localize-sidebar-name
ilicfilip Feb 2, 2026
8b9c6db
Merge branch 'develop' into filip/revert-old-onboarding
ilicfilip Feb 4, 2026
86c5109
Merge pull request #749 from ProgressPlanner/filip/revert-old-onboarding
ilicfilip Feb 4, 2026
7fd8ea4
Merge develop into filip/2e2-tests-refactor
ilicfilip Feb 4, 2026
4c7e25f
Merge pull request #737 from ProgressPlanner/filip/2e2-tests-refactor
ilicfilip Feb 4, 2026
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
13 changes: 10 additions & 3 deletions .distignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
/.wordpress-org
/.git
/.github
/.husky
/.vscode
/.wordpress-org
/bin
/coverage
/tests
/vendor
.distignore
.editorconfig
.eslintrc.js
.env.example
.gitignore
.eslintcrc.js
.gitattributes
.gitignore
.php-cs-fixer.dist.php
.stylelintrc.json
composer.json
composer.lock
package.json
package-lock.json
package.json
phpcs.xml.dist
phpstan.neon.dist
phpunit.xml.dist
playwright.config.js
README.md
SECURITY.md
19 changes: 14 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
.editorconfig export-ignore
.gitattributes export-ignore
.github/* export-ignore
.husky/* export-ignore
.vscode/* export-ignore
.wordpress-org/* export-ignore
bin/* export-ignore
coverage/* export-ignore
tests/* export-ignore
.distignore export-ignore
.editorconfig export-ignore
.env.example export-ignore
.eslintcrc.js export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.php-cs-fixer.dist.php export-ignore
.stylelintrc.json export-ignore
composer.json export-ignore
composer.lock export-ignore
package.json export-ignore
package-lock.json export-ignore
.wordpress-org/* export-ignore
phpcs.xml.dist export-ignore
phpstan.neon.dist export-ignore
phpunit.xml.dist export-ignore
playwright.config.js export-ignore
README.md export-ignore
.wordpress-org/* export-ignore
.vscode/* export-ignore
SECURITY.md export-ignore
509 changes: 509 additions & 0 deletions .github/workflows/code-coverage.yml

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions .github/workflows/coverage-status-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Coverage Status Check - DISABLED

on:
workflow_dispatch:

jobs:
coverage-gate:
name: Coverage Gate
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Wait for coverage check
timeout-minutes: 10
run: |
echo "Waiting for Code Coverage Check to complete..."

# Wait up to 10 minutes for the check to appear and complete
for i in {1..60}; do
# Get the status of the Code Coverage Check
STATUS=$(gh api repos/${{ github.repository }}/commits/${{ github.event.pull_request.head.sha }}/check-runs \
--jq '.check_runs[] | select(.name == "Code Coverage Check") | .status' || echo "")

CONCLUSION=$(gh api repos/${{ github.repository }}/commits/${{ github.event.pull_request.head.sha }}/check-runs \
--jq '.check_runs[] | select(.name == "Code Coverage Check") | .conclusion' || echo "")

if [ -n "$STATUS" ]; then
echo "Check found with status: $STATUS, conclusion: $CONCLUSION"

if [ "$STATUS" == "completed" ]; then
if [ "$CONCLUSION" == "success" ]; then
echo "✅ Code coverage check passed!"
exit 0
else
echo "❌ Code coverage check failed with conclusion: $CONCLUSION"
exit 1
fi
fi
else
echo "Check not found yet (attempt $i/60)"
fi

sleep 10
done

echo "❌ Timeout waiting for Code Coverage Check"
exit 1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Coverage gate passed
run: echo "✅ Code coverage requirements met!"
5 changes: 5 additions & 0 deletions .github/workflows/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: CS
on:
# Run on all relevant pushes (except to main) and on all relevant pull requests.
push:
branches:
- main
- develop
- 'release/[0-9]+.[0-9]+*'
- 'hotfix/[0-9]+.[0-9]+*'
paths:
- '**.php'
- 'composer.json'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Test
on:
# Run on pushes to select branches and on all pull requests.
push:
branches:
- main
- develop
- 'release/[0-9]+.[0-9]+*'
- 'hotfix/[0-9]+.[0-9]+*'
pull_request:
# Allow manually triggering the workflow.
workflow_dispatch:
Expand All @@ -21,7 +26,7 @@ jobs:
matrix:
include:
- php_version: '8.2'
wp_version: '6.2'
wp_version: '6.7'
multisite: false

- php_version: '8.2'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/playground-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
pull-requests: write
actions: read
steps:
- uses: actions/checkout@v4

- name: Prepare blueprint with artifact link
id: blueprint
run: |
Expand Down
29 changes: 25 additions & 4 deletions .github/workflows/playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
actions: read

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

# Prepare a folder named exactly like the repo as the plugin root.
# If the repo already has such a folder (common for WP plugins), use it.
Expand Down Expand Up @@ -45,9 +45,30 @@ jobs:
PLUGIN_FILE="${{ steps.prep.outputs.PKG_DIR }}/${{ github.event.repository.name }}.php"
PR_NUMBER="${{ github.event.number }}"

# Extract current version and add PR number
# Extract current version
CURRENT_VERSION=$(grep -o "Version:[[:space:]]*[0-9.]*" "$PLUGIN_FILE" | sed 's/Version:[[:space:]]*//')
NEW_VERSION="${CURRENT_VERSION} - PR ${PR_NUMBER}"

# Increment patch version if it exists, otherwise increment minor version
# Handle versions like 2.1.5 or 2.1
if [[ "$CURRENT_VERSION" =~ ^([0-9]+)\.([0-9]+)(\.([0-9]+))?$ ]]; then
MAJOR="${BASH_REMATCH[1]}"
MINOR="${BASH_REMATCH[2]}"
PATCH="${BASH_REMATCH[4]}"

# Build new version with 'b' suffix
if [ -n "$PATCH" ]; then
# If patch exists, increment patch by 1
PATCH=$((PATCH + 1))
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}b - PR ${PR_NUMBER}"
else
# If no patch, increment minor by 1
MINOR=$((MINOR + 1))
NEW_VERSION="${MAJOR}.${MINOR}b - PR ${PR_NUMBER}"
fi
else
# Fallback: if version format is unexpected, just add .1 and 'b'
NEW_VERSION="${CURRENT_VERSION}.1b - PR ${PR_NUMBER}"
fi

# Replace the version line
sed -i "s/Version:[[:space:]]*[0-9.]*/Version: ${NEW_VERSION}/" "$PLUGIN_FILE"
Expand Down Expand Up @@ -76,7 +97,7 @@ jobs:
# Upload the FOLDER (not a .zip). The artifact service zips it for us,
# keeping the top-level folder name inside the archive.
- name: Upload plugin artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: ${{ github.event.repository.name }}
path: ${{ steps.prep.outputs.PKG_DIR }}
Expand Down
Loading
Loading