• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bleedingdeacons / whats-on / 43463506515

13 Nov 2026 04:31PM UTC coverage: 91.667%. First build
43463506515

push

github

web-flow
ci: suite build script, quality gates and release on merge (#4)

* build: adopt the suite's build.php and composer build:* scripts

composer build:production now writes build/whats-on-production-<version>.zip,
as every suite plugin does, so /bump and the CI release flow recognise it.
build.php is lifelines' script adapted for npm-built assets: it runs
npm run build first, anchors excludes at the root (the shared matcher would
drop assets/build) and runs Composer through COMPOSER_BINARY. The plugin
version is read from the header, and bin/package.mjs is retired.

* test: run the PHP tests on wp-mocks, Pest 5 and PHPUnit 13

The suite's shared WordPress doubles replace hand-written Brain Monkey
stubs: tests seed WpState (posts, meta, options, thumbnails, attachments)
and assert on the result. Same versions as lifelines. Adds coverage for
upcoming(), the timezone fallback and per-event timezones.

* style: PSR-12 throughout and PHPStan level 9 clean

phpcbf applied PSR-12 (whitespace only). Level 9 needed typed reads of
Divi's nested block attributes and of mixed values from post meta,
options and REST params, now in WhatsOn\Support\Attrs; Divi's module
objects are typed and checked. Parsing numeric category slugs no longer
turns them into ints. PHPStan reads stubs for the Divi 5 and TEC APIs used.
dev.ps1 puts Local's PHP first on PATH so tools Composer starts share it.

* ci: the suite's workflow, quality gates and release on merge

Gates on PHP 8.4 and 8.5: composer validate/audit, npm audit, Semgrep,
PHP lint, Vitest, the production build (and that committed assets are
current), Pest, PHPCS and PHPStan with badge checks; Coveralls advisory.
Merging to main raises the version, builds the zip and publishes a
GitHub Release, as in lifelines.

* ci: keep build.php out of Semgrep, as the other suite plugins do

The CLI build script shells out to npm and Composer (exec-use) and
cleans its own staging directory (unlink-use). It is never shipped and
never se... (continued)

253 of 276 new or added lines in 8 files covered. (91.67%)

253 of 276 relevant lines covered (91.67%)

3.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

15.38
/src/Events/EventCard.php


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc