Skip to content

Add CI workflow to run the validator test suites - #33

Open
Kaushik2210 wants to merge 1 commit into
cloudflare:mainfrom
Kaushik2210:ci/add-test-workflow
Open

Kaushik2210 wants to merge 1 commit into
cloudflare:mainfrom
Kaushik2210:ci/add-test-workflow

Conversation

@Kaushik2210

Copy link
Copy Markdown

Summary

This repo has no automated CI — the two test suites (validate-findings.test.cjs, validate-coverage-ledger.test.cjs) only run when a contributor remembers to run them locally before opening a PR.

This isn't hypothetical: it's exactly how the bug fixed in #31 got through. validate-findings.test.cjs had 7 CLI-invoking tests that failed outright (rather than skipping) on any platform without O_NOFOLLOW/O_NONBLOCK — e.g. Windows — and nothing flagged it before merge.

Change

Adds .github/workflows/test.yml, which runs both validator test suites on push/PR to main, across ubuntu-latest, windows-latest, and macos-latest.

Verification

Confirmed locally that running validate-findings.test.cjs at the commit before #31's fix exits with a nonzero status code — so this workflow, had it existed, would have failed CI on the Windows job and caught that bug before merge.

This PR is independent of #31 (based on current main) and can land in either order; together they close the gap that let that bug ship.

🤖 Generated with Claude Code

The repo has no automated CI: tests only run when a contributor
remembers to run them locally. This directly let a real bug through —
validate-findings.test.cjs had 7 CLI tests that failed outright (not
just skipped) on platforms without O_NOFOLLOW/O_NONBLOCK, such as
Windows (see PR cloudflare#31) — and nothing would have caught it before merge.

Add a GitHub Actions workflow that runs both validate-findings.test.cjs
and validate-coverage-ledger.test.cjs on push/PR to main, across
ubuntu-latest, windows-latest, and macos-latest. Verified locally that
running the pre-fix test file exits nonzero, confirming this workflow
would have failed on the bug fixed in cloudflare#31.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

1 participant