Skip to content

Add browser CI workflow - #23

Merged
kawanet merged 6 commits into
mainfrom
feature/browser-ci
Aug 31, 2026
Merged

Add browser CI workflow#23
kawanet merged 6 commits into
mainfrom
feature/browser-ci

Conversation

@kawanet

@kawanet kawanet commented Aug 31, 2026

Copy link
Copy Markdown
Owner
  • add a Browser CI workflow for pushes to main and manual runs, byte-identical to the sibling packages' workflow
  • run the existing mocha browser suite in Chromium through Playwright, with the shared tests.cli.mjs runner (also byte-identical): completion is reported through window.mochaStats, an unfinished page times out, and an empty run fails with "Mocha ran no tests"

Copilot AI lite review requested due to automatic review settings August 31, 2026 12:12
@kawanet

kawanet commented Aug 31, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@coveralls

coveralls commented Aug 31, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 33391881168

Coverage remained the same at 96.528%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 166
Covered Lines: 165
Line Coverage: 99.4%
Relevant Branches: 122
Covered Branches: 113
Branch Coverage: 92.62%
Branches in Coverage %: Yes
Coverage Strength: 411.79 hits per line

💛 - Coveralls

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7f52f4e5f0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/publish.yml Outdated
Comment thread .github/workflows/publish.yml

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new browser/Makefile contains invalid recipe indentation that will break make, and the new publish workflow uploads a non-existent artifact path.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adds a Playwright-driven browser test runner and a new “Browser CI” GitHub Actions workflow to execute the existing Mocha suite in headless Chromium, aligning CI coverage with browser behavior.

Changes:

  • Add a Browser CI workflow that runs make -C browser install and make -C browser test on pushes to main and on manual dispatch.
  • Introduce a Playwright CLI runner (browser/tests.cli.mjs) and update browser/tests.html to report completion via window.mochaStats.
  • Misc: update CI badge branches to main, bump a few devDependency versions, remove bower.json, and add a new publish workflow.
File summaries
File Description
README.md Updates CI/coverage badges to track the main branch.
package.json Bumps devDependency versions (Node types, mocha, terser).
browser/tests.html Adjusts browser test harness and completion reporting for Playwright runner.
browser/tests.cli.mjs Adds Playwright-based runner to execute the Mocha browser suite and fail CI on errors/empty runs.
browser/Makefile Adds browser-specific make targets for transient Playwright install and running browser tests.
bower.json Removes legacy Bower metadata file.
.gitignore Ignores .Thumbs and un-ignores the new tracked browser/tests.cli.mjs despite *.mjs ignore.
.github/workflows/publish.yml Adds a tag-driven publish workflow with artifact handoff between build and stage jobs.
.github/workflows/nodejs.yml Updates action versions for checkout/setup-node.
.github/workflows/browser.yml Adds the new Browser CI workflow to run Playwright-backed browser tests.
Review details

Suppressed comments (1)

browser/Makefile:27

  • Make recipes must start with a tab; this target currently uses spaces, which will cause make to error with "missing separator".
clean:
    @: # NOP
  • Files reviewed: 9/10 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread browser/Makefile Outdated
Comment thread .github/workflows/publish.yml
Comment on lines +1 to +8
name: Publish

# Releases are cut by pushing a version tag, so ordinary pushes never reach
# npm. The staged publish below still leaves the version invisible until a
# maintainer approves it with 2FA.
on:
push:
tags: [ "1.*.*" ]
@kawanet
kawanet requested a lite review from Copilot August 31, 2026 12:29
@kawanet

kawanet commented Aug 31, 2026

Copy link
Copy Markdown
Owner Author

@codex review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new browser workflow and Makefile have issues that will break CI (missing dependency install and an invalid Make recipe line), and the publish workflow references non-existent artifact action major versions.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (1)

browser/Makefile:27

  • clean target recipe is indented with spaces instead of a tab, which will cause make to fail with "missing separator".
clean:
    @: # NOP
  • Files reviewed: 9/10 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread .github/workflows/browser.yml
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 6fa484551d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@kawanet
kawanet merged commit f996779 into main Aug 31, 2026
12 checks passed
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.

3 participants