Skip to content

Release 0.4.0#22

Merged
apermo merged 22 commits into
mainfrom
release/0.4.0
Apr 18, 2026
Merged

Release 0.4.0#22
apermo merged 22 commits into
mainfrom
release/0.4.0

Conversation

@apermo
Copy link
Copy Markdown
Owner

@apermo apermo commented Apr 8, 2026

Summary

All changes are non-breaking, additive features.

Test plan

  • Verify actionlint passes on all new/modified workflow YAML
  • Review reusable-wp-e2e.ymla11y input and conditional @axe-core/playwright install step
  • Review reusable-lhci.yml — input defaults, jq config generation, wp-env setup, artifact upload
  • Review reusable-wp-visual-regression.yml — matrix prep, wp-env setup, VRT env vars, artifact strategy
  • Verify CHANGELOG, README, and CLAUDE.md are consistent

apermo and others added 11 commits April 8, 2026 20:02
Add `a11y` boolean input to reusable-wp-e2e.yml
that installs @axe-core/playwright when enabled.
Playwright-based visual regression testing for
WordPress using wp-env. Supports screenshot
comparison with configurable thresholds,
viewports, and color schemes.

Closes #18
Add workflow documentation to README, CLAUDE.md
inventory table, and CHANGELOG entry for v0.4.0.
feat(e2e): add optional a11y testing support
feat: add visual regression testing workflow
@apermo
Copy link
Copy Markdown
Owner Author

apermo commented Apr 8, 2026

/gemini review

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This release introduces several new testing capabilities to the reusable workflow suite, specifically targeting accessibility, performance auditing, and visual regression testing. These additions are designed to be non-breaking and provide greater flexibility for automated quality assurance in WordPress projects.

Highlights

  • Accessibility Testing: Added optional @axe-core/playwright support to the existing E2E workflow via a new a11y input.
  • Lighthouse CI: Introduced a new reusable workflow for Lighthouse CI audits with configurable performance and accessibility thresholds.
  • Visual Regression Testing: Added a new Playwright-based visual regression testing workflow to support automated screenshot comparisons.
Ignored Files
  • Ignored by pattern: .github/workflows/** (3)
    • .github/workflows/reusable-lhci.yml
    • .github/workflows/reusable-wp-e2e.yml
    • .github/workflows/reusable-wp-visual-regression.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.


Tests run fast and screens are checked, / No visual bugs shall we neglect. / With Lighthouse scores and axe in tow, / Our code quality starts to grow.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces two new reusable workflows: reusable-lhci.yml for Lighthouse CI audits and reusable-wp-visual-regression.yml for visual regression testing. The documentation in README.md, CHANGELOG.md, and CLAUDE.md has been updated to reflect these additions. Feedback was provided to improve the consistency and clarity of the documentation, specifically regarding the use of backticks for technical terms, filenames, and configuration options, as well as ensuring consistency in input descriptions.

Comment thread README.md
Comment thread README.md
Comment thread README.md
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md
Comment thread README.md
Use env vars instead of direct input interpolation
in shell commands. Add npm cache and consistent
error message.
@apermo apermo requested a review from Copilot April 8, 2026 18:13
@apermo
Copy link
Copy Markdown
Owner Author

apermo commented Apr 8, 2026

/gemini review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces two new reusable workflows: reusable-lhci.yml for Lighthouse CI audits and reusable-wp-visual-regression.yml for visual regression testing, along with the necessary documentation updates. I have provided feedback to improve the documentation clarity regarding environment setup, ensure consistency in versioning descriptions, and correct the input type for the visual regression threshold to match project standards.

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Release 0.4.0 adds three reusable CI capabilities to this repo’s GitHub Actions workflow suite: optional Playwright a11y dependency installation for WP E2E runs, a Lighthouse CI audit workflow, and a Playwright-based visual regression workflow.

Changes:

  • Added a11y input to reusable-wp-e2e.yml to optionally install @axe-core/playwright.
  • Added reusable-lhci.yml to run Lighthouse CI audits with configurable score thresholds (and optional wp-env setup).
  • Added reusable-wp-visual-regression.yml to run Playwright screenshot regression testing, with artifacts for diffs/reports and optional snapshot updates.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Documents new workflow inputs/usages for LHCI and visual regression; adds a11y input to WP E2E docs.
CLAUDE.md Updates the workflow inventory list to include the two new reusable workflows.
CHANGELOG.md Adds 0.4.0 release notes covering the three new features.
.github/workflows/reusable-wp-e2e.yml Adds optional conditional install step for @axe-core/playwright via a11y input.
.github/workflows/reusable-lhci.yml Introduces Lighthouse CI reusable workflow with threshold-driven config generation and artifact upload.
.github/workflows/reusable-wp-visual-regression.yml Introduces Playwright-based visual regression workflow with wp-env setup and artifact strategy.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/reusable-lhci.yml Outdated
Comment thread .github/workflows/reusable-wp-visual-regression.yml
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces three new reusable workflows: reusable-wp-e2e.yml with optional accessibility testing via @axe-core/playwright, reusable-lhci.yml for Lighthouse CI audits, and reusable-wp-visual-regression.yml for Playwright-based visual regression testing. The documentation in README.md, CLAUDE.md, and CHANGELOG.md has been updated to include these new tools. Feedback was provided to pin the workflow references in the README examples to a major version tag (e.g., @v0) instead of @main to ensure stability and prevent unexpected breakages for consumers.

Comment thread README.md
Comment thread README.md
apermo added 8 commits April 8, 2026 20:24
- chromeFlags must be array, not string (lhci)
- add *-snapshots/ to upload paths (vrt)
- README formatting and consistency fixes
Check if v<VERSION> git tag exists and fail if so.
Prevents PRs from merging without bumping CHANGELOG
when the top version already has a release tag.

Closes #13
Branch protection rules reference checks by job ID
(workflow / job-id), but GitHub reports the display
name when set, causing checks to stay stuck at
"Waiting for status to be reported".

Closes #12
Matrix-based workflows now have a static-named
summary job that consumers can target in branch
protection rules. The matrix job names evaluate
cleanly when skipped.

Closes #11
@apermo apermo requested a review from Copilot April 18, 2026 06:23
@apermo
Copy link
Copy Markdown
Owner Author

apermo commented Apr 18, 2026

/gemini review

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/reusable-pr-validation.yml Outdated
Comment thread .github/workflows/reusable-lhci.yml
Comment thread .github/workflows/reusable-wp-e2e.yml
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces version 0.4.0, adding new reusable workflows for Lighthouse CI audits and Playwright-based visual regression testing. It also includes an optional accessibility check for E2E tests, documents the actionlint integration, and provides guidance on using summary jobs for branch protection. Feedback was provided to update the documentation for the visual regression threshold to use a number type instead of a string for consistency with other workflows.

Comment thread README.md
apermo added 2 commits April 18, 2026 08:31
Prevents artifact name collisions when the
workflow is invoked multiple times in a run
(e.g. via matrix or parallel jobs).
@apermo apermo merged commit 7138d09 into main Apr 18, 2026
3 checks passed
@apermo apermo deleted the release/0.4.0 branch April 18, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants