Skip to content

feat(ci)!: unify Node.js checks, reports and action package testing - #624

Open
neilime wants to merge 1 commit into
mainfrom
feat/native-github-coverage
Open

neilime wants to merge 1 commit into
mainfrom
feat/native-github-coverage

Conversation

@neilime

@neilime neilime commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Node.js lint and test actions retain validated native reports. One outer Common workflow publishes them, and a separate completion gate checks CI outcomes.

  • Provide presets for Vitest, Jest, Node's runner, Biome, ESLint and Astro. Preserve file selection and arguments from supported test scripts, configure native reporters, and retain explicit custom commands for hooks or shell orchestration. Use shell-quote instead of a custom command parser.
  • Call the existing continuous-integration.yml from a native GitHub matrix listing action directories. Keep its implementation in that one workflow, with no forwarding workflow or duplicated input contract. Infer optional build/lint/test checks from each package; a recognized lint script selects its engine when several tools are declared. Keep custom scripts and hooks explicit. Run repository security scans on the first matrix entry.
  • Verify bundled actions during their normal build and execute isolated committed bundles on host and container runners through Common's isolation action. Remove duplicate source-test and distribution-workflow calls. Dedicated workflows retain integration scenarios.
  • Preserve prebuilt containers, npm workspace package validation, single-project artifact outputs, Vitest shards, failed test results, and optional coverage. Packages testing only an external CLI retain results without third-party coverage.
  • Standardize local development on make setup, make test, make build, make lint and make ci. Keep independent lockfiles and generated license notices. Normal CI uploads successful build output before the stale-distribution check; the isolated writer consumes it. Remove the dedicated rebuild caller without adding CI inputs.
  • Keep tests beside the action classes or metadata they exercise, with their engine dependencies and fixtures owned by the action package. Workflow tests cover orchestration. Use prebuild for bundle cleanup, let native presets supply CI reporters without a test:ci wrapper, and document input behavior in the input descriptions used to generate the READMEs.

Reporting uses Common 5.0.0. Release Common #701 first and replace its candidate pins with the released SHA and tag comment. Then release this PR and update Common #686, Container #1003, and Publish #542. The foundation uses released Node.js tooling, so the release order has no cycle.

Validation: the lint action's 11 tests pass against source and the rebuilt isolated bundle (about four seconds each). The added regression reproduces the ambiguous-engine failure before the fix; existing checks cover custom scripts, lifecycle hooks and native diagnostics. npm run lint, full Super-Linter and the five affected local documentation links/anchors pass. CI Dokumentor regenerated the action/workflow READMEs. Moving engine dependencies preserves existing resolved versions and integrity hashes. The caller matrices cover all 32 action packages across the four repositories. The tests cover artifact collection, test selection, native reports, failed outcomes, shard provenance and coverage thresholds. Hosted CI passed for host/container execution, artifacts and publication. Automatic bot writing remains a post-merge check because workflow_run uses the default branch. Native GitHub coverage still requires the separate Enterprise Cloud pilot.

@github-actions github-actions Bot added the type: feature Introduces a new feature label Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - Test results

Workflow run and full reports · Commit 26c3903

Jobs: 2 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

No tests reports available for this attempt. See the job results and workflow logs.

Job results and report availability
Job Result Report artifacts
lint success 1
test-release success 4

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - Code coverage

Workflow run and full reports · Commit 26c3903

Jobs: 2 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Coverage: 4 source report(s); percentages remain separate.

Coverage details

Coverage results

ci-reports-1-test-release-actions-package-restore-97eca8b2-57a9-4d9e-a0ae-afc6b5c84269/lcov.info

Coverage

Metric Covered Total Percentage
Lines 72 72 100.00%
Branches 24 24 100.00%
Functions 4 4 100.00%

Overall: 100.00% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

ci-reports-1-test-release-actions-release-finalize-31c59386-ac07-4b80-ab2e-b44b7c7a0647/lcov.info

Coverage

Metric Covered Total Percentage
Lines 92 92 100.00%
Branches 36 36 100.00%
Functions 6 6 100.00%

Overall: 100.00% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

ci-reports-1-test-release-actions-release-prepare-3cd12b36-f3b2-48f5-bc31-e51da8d2fb1e/lcov.info

Coverage

Metric Covered Total Percentage
Lines 513 545 94.13%
Branches 155 178 87.08%
Functions 39 39 100.00%

Overall: 94.13% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜

ci-reports-1-test-release-actions-release-verify-1dd84b4e-fa50-4f4d-a32d-d83a1e3203e7/lcov.info

Coverage

Metric Covered Total Percentage
Lines 129 129 100.00%
Branches 74 77 96.10%
Functions 11 11 100.00%

Overall: 100.00% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

Job results and report availability
Job Result Report artifacts
lint success 1
test-release success 4

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - Lint results

Workflow run and full reports · Commit 26c3903

Jobs: 2 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Lint: Collected diagnostics and Super-Linter summaries. Execution status is included in the job outcomes.

Super-Linter details

Super-linter summary

Language Validation result
BIOME_FORMAT Pass ✅
BIOME_LINT Pass ✅
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_COMMITLINT Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
JSCPD Pass ✅
MARKDOWN Pass ✅
MARKDOWN_PRETTIER Pass ✅
NATURAL_LANGUAGE Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅
YAML_PRETTIER Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter
Super-linter revision: 2da136927bd4a73596db63044b504547c62cb854
Super-linter version: 9.0.0

Job results and report availability
Job Result Report artifacts
lint success 1
test-release success 4

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage Report

Test and Coverage Results

Coverage

Metric Covered Total Percentage
Lines 2 2 100.00%
Functions 1 1 100.00%

Overall: 100.00% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (840ff81) to head (aeab7d7).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #624   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            3         3           
=========================================
  Hits             3         3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - CI report

Workflow run and full artifacts

Jobs: 2 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Test: 46 passed · 0 failed · 0 skipped.

Test details

Test results

Test Results

Status Count
✅ Passed 46
❌ Failed 0
⏭️ Skipped 0
Total 46

✅ Pass Rate: 100.0%

root (lint)

Super-linter summary

Language Validation result
BIOME_FORMAT Pass ✅
BIOME_LINT Pass ✅
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_COMMITLINT Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
JSCPD Pass ✅
MARKDOWN Pass ✅
MARKDOWN_PRETTIER Pass ✅
NATURAL_LANGUAGE Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅
YAML_PRETTIER Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter
Super-linter revision: 2da136927bd4a73596db63044b504547c62cb854
Super-linter version: 9.0.0

Report availability
Component Execution Job Files Commit
root lint lint 1 fbb6f94
actions/package/restore package-restore test-release 1 35b4839
actions/release/prepare release-prepare test-release 1 35b4839
actions/release/verify release-verify test-release 1 35b4839
actions/release/finalize release-finalize test-release 1 35b4839

Only the current attempt is included. Rerun all producers after a partial rerun.

Coverage publication: disabled.

@neilime neilime changed the title feat(coverage): support native GitHub Code Quality reports feat(reports)!: adopt unified CI reporting Nov 26, 2026
@github-actions github-actions Bot added the type: breaking Introduces a breaking change label Nov 26, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Test coverage

Results for 3f3820f

Project Lines covered
report-fixture 100.0% (1 / 1)
continuous-integration 100.0% (3 / 3)
npm 100.0% (2 / 2)

Comparison unavailable: No comparable report retained for the exact PR base commit.

Coverage measurement details
Project branches functions statements Measured commit
report-fixture 100.0% (2 / 2) 100.0% (1 / 1) Not measured 3f3820f (PR head)
continuous-integration 100.0% (2 / 2) 100.0% (1 / 1) Not measured 3f3820f (PR head)
npm Not measured 100.0% (1 / 1) 100.0% (2 / 2) 3f3820f (PR head)

report-fixture: v26.13.1 · No changed instrumented lines in this dataset.

continuous-integration: v24.22.3 · No changed instrumented lines in this dataset.

npm: v26.13.1 · No changed instrumented lines in this dataset.

Changed-line coverage counts only added or modified lines present in the native coverage report. Files and lines omitted by the coverage tool are not measured. Deleted lines are excluded.

Full report and native artifacts

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

CI report

Workflow run and full summary · Commit d83b75e

Lint

Passed checks: 3

Successful lint checks (3)
Check Project Context Result Findings
Super-Linter . - ✅ Passed Native report
Node.js lint actions/lint runtime: v24.22.3 ✅ Passed 0
Node.js lint lint-fixture runtime: v26.13.1 ✅ Passed 0

Tests

176 passed · 0 failed · 0 skipped

Successful test checks (11)
Check Project Context Result Passed Failed Skipped
Node.js tests actions/lint runtime: v24.22.3 ✅ Passed 11 0 0
Node.js tests actions/package/restore runtime: v26.13.1 ✅ Passed 5 0 0
Node.js tests actions/release/finalize runtime: v26.13.1 ✅ Passed 8 0 0
Node.js tests actions/release/prepare runtime: v26.13.1 ✅ Passed 27 0 0
Node.js tests actions/release/verify runtime: v26.13.1 ✅ Passed 6 0 0
Node.js tests actions/test runtime: v24.22.3 ✅ Passed 25 0 0
Node.js tests report-fixture runtime: v26.13.1 ✅ Passed 1 0 0
Node.js tests tests/continuous-integration runtime: v24.14.1 ✅ Passed 2 0 0
Node.js tests (2 runs) tests/continuous-integration runtime: v24.22.3 ✅ Passed 86 0 0
Node.js tests (2 runs) tests/npm runtime: v26.13.1 ✅ Passed 2 0 0
Node.js tests (3 runs) tests/npm runtime: v24.14.1 ✅ Passed 3 0 0

Totals count test executions, including runtime variants.

Test coverage

96.8% lines · 91.1% branches

1535 / 1585 lines covered; 528 / 579 branches covered.

Source: merged producer reports, calculated by ReportGenerator.

Coverage by project and context
Check Project Context Lines
Node.js tests actions/lint runtime: v24.22.3 97.1%
Node.js tests actions/package/restore runtime: v26.13.1 100%
Node.js tests actions/release/finalize runtime: v26.13.1 100%
Node.js tests actions/release/prepare runtime: v26.13.1 94.1%
Node.js tests actions/release/verify runtime: v26.13.1 100%
Node.js tests actions/test runtime: v24.22.3 97.8%
Node.js tests report-fixture runtime: v26.13.1 100%
Node.js tests tests/continuous-integration runtime: v24.22.3 100%
Node.js tests tests/npm runtime: v26.13.1 100%

Project measurements are shown separately. The total above merges covered source lines; it does not average percentages.

Workflow jobs
Job Result
lint success
continuous-integration success
test-release success
test-action-dependencies-cache success
test-action-get-package-manager success
test-action-has-installed-dependencies success
test-action-package-create success
test-action-package-test success
test-action-package-discover success
test-action-setup-node success
test-action-package-publish success
test-workflow-continuous-integration success
test-action-test success
test-action-lint success

The required CI complete check determines whether this workflow passed. Jobs without structured reports remain available in the workflow run.

Comment thread docs/usage/test-reports.md Resolved
@neilime neilime changed the title feat(reports)!: adopt unified CI reporting feat(ci)!: unify Node.js checks, reports and action package testing Dec 5, 2026
Comment thread docs/README.md Resolved
Comment thread actions/lint/package.json Resolved
Comment thread actions/test/TestShards.test.cjs Resolved
Comment thread actions/lint/action.yml Resolved
Comment thread actions/test/action.yml Resolved
Comment thread .github/workflows/__checks.yml Resolved
Provide native lint and test presets, validate their reports, and delegate
publication to Common's reporting workflow. Preserve custom commands,
container execution, Vitest shards and package validation.

Use the continuous-integration workflow for action packages, including
builds, isolated bundle tests and distribution artifacts. Keep tests and
fixtures with their owning actions and derive defaults from package scripts.

BREAKING CHANGE: lint and test actions now produce validated report artifacts;
callers publish reports once with Common's publish-ci-reports workflow and
use a separate completion gate. Custom commands must honor the native
report contract. Action distributions are collected by the normal build.
@neilime
neilime force-pushed the feat/native-github-coverage branch from 748927a to d83b75e Compare December 6, 2026 10:58

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: breaking Introduces a breaking change type: feature Introduces a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant