ci(reporter): post test results to GitHub PR comments via @testomatio/reporter#5659
Open
DavertMik wants to merge 1 commit into
Open
ci(reporter): post test results to GitHub PR comments via @testomatio/reporter#5659DavertMik wants to merge 1 commit into
DavertMik wants to merge 1 commit into
Conversation
…/reporter
Enable the reporter's GitHub pipe across the mocha-based test workflows so
each job posts a pass/fail summary as a PR comment. The reporter was already
a devDependency and wired into every mocha script; this only supplies the
CI environment it needs:
- permissions: pull-requests: write (so github.token can comment)
- GH_PAT: ${{ github.token }} (activates the GitHub pipe; matches webdriver.yml)
- TESTOMATIO: ${{ secrets.TESTOMATIO }} (activates TMS pipe once the secret is set;
dormant no-op until then)
Also add the missing --reporter @testomatio/reporter/mocha flag to the bare
Playwright/Puppeteer helper unit runs, and drop the now-redundant per-step
GH_PAT in webdriver.yml (covered by workflow-level env).
Scope is mocha tests only; CodeceptJS acceptance runs are untouched.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
|
|
|
|
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Enables the
@testomatio/reporterGitHub pipe across the mocha-based test workflows so each job posts a pass/fail summary directly as a PR comment.The reporter (v2.9.0) was already a devDependency and already wired into every mocha script (
--reporter @testomatio/reporter/mocha). This PR only supplies the CI environment the pipe needs.Changes (6 workflows)
Added to
test.yml,plugin.yml,playwright.yml,puppeteer.yml,webdriver.yml,appium_Android.yml:--reporter @testomatio/reporter/mochaflag to the bare Playwright/Puppeteer helper unit runs.GH_PATinwebdriver.yml(covered by workflow-level env).Verification
Simulated a PR environment locally — the mocha reporter activated the GitHub pipe and built the exact comment CI will post:
With no secrets (local/non-PR runs) it's a safe no-op:
Pipes: No pipes enabled.Notes
github.token. To also stream results into Testomat.io TMS, add the repo secretTESTOMATIO.GITHUB_TOKENread-only and withholds secrets onpull_requestruns from forks (platform limitation)../bin/codecept.js run) are intentionally untouched.appium_iOS.ymlwas skipped (disabledif: false,3.x-only push).🤖 Generated with Claude Code