Skip to content

Fix README badges and move CI to GitHub Actions - #36

Merged
hiddentao merged 2 commits into
masterfrom
claude/adoring-knuth-gc63k6
Sep 30, 2026
Merged

hiddentao merged 2 commits into
masterfrom
claude/adoring-knuth-gc63k6

Conversation

@hiddentao

@hiddentao hiddentao commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

The README badges were stale, and no CI ran for this repo since Travis CI stopped.

  • Build badge: Travis no longer runs for this repo. This adds a GitHub Actions workflow (.github/workflows/ci.yml) that runs npm run build (jshint, uglify, mocha) on Node 22, 24 and 26. The badge now points at it. .travis.yml is removed.
  • npm version badge: shields.io SVG instead of the badge.fury.io PNG.
  • Downloads badge: dropped the old maxAge parameter.
  • Follow badge: now links to https://x.com/taoofdev.
  • grunt-contrib-jshint ~0.4.3 → ~0.12.0: the old version pulls jshint 1.1.0, which installs esprima from a GitHub master tarball. That makes npm install unreliable.
  • mocha ~1.9.0 → ^11.8.0, grunt-mocha-test ~0.2.2 → ~0.13.3: mocha 1.9's wrapper uses a spawn option that current Node removed, so npm test printed nothing. The Gruntfile mochaTest config moves to the 0.13 shape, and test/mocha.opts (ignored since mocha 8) becomes .mocharc.yml. mocha 12 is ESM-only, so this stays on 11.

No library code changes. The other old dev tools are unchanged.

The CDN link fix came from #26, which is already merged.

Test plan

  • npm test and npm run build pass on Node 22, 24 and 26 locally: jshint clean, and all 29 tests pass.
  • A test broken on purpose makes both npm test and npm run build fail.
  • Old tool versions: npm install fails (esprima tarball from GitHub).
  • Badge images for npm version, downloads, and follow render (checked with curl).
  • CI workflow passed on the first commit (Node 22, 24, 26).
  • CI workflow passes on the mocha upgrade commit (Node 22, 24, 26).
  • Build badge shows "passing" after merge. It reads from master, which has no workflow until this merges.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HSF37GZBZk7YCxTXR58oyX

- Build badge: Travis CI no longer runs for this repo. Add a GitHub
  Actions workflow that runs `npm run build` (jshint, uglify, mocha) on
  Node 22, 24 and 26, point the badge at it, and remove .travis.yml.
- npm version badge: use shields.io SVG instead of the badge.fury.io PNG.
- Downloads badge: drop the old maxAge parameter.
- Follow badge: point to https://x.com/taoofdev.
- Bump grunt-contrib-jshint ~0.4.3 -> ~0.12.0. The old version pulls
  jshint 1.1.0, which installs esprima from a GitHub master tarball, so
  `npm install` is not reliable. With this one change the build and all
  29 tests pass on Node 22, 24 and 26.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HSF37GZBZk7YCxTXR58oyX
mocha 1.9's `mocha` wrapper spawns `_mocha` with the `customFds` option,
which current Node no longer supports, so `npm test` printed nothing
(the exit code was still correct).

- mocha ~1.9.0 -> ^11.8.0 (last CommonJS line; 12 is ESM-only)
- grunt-mocha-test ~0.2.2 -> ~0.13.3 (0.2.2 pins its own mocha 1.9;
  0.13 uses the project's mocha)
- Gruntfile: move mochaTest config to the 0.13 target/options shape
- Replace test/mocha.opts (ignored since mocha 8) with .mocharc.yml

`npm test` and `npm run build` pass on Node 22, 24 and 26 with all 29
tests, and a failing test still fails both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HSF37GZBZk7YCxTXR58oyX
@hiddentao
hiddentao merged commit 697e78e into master Sep 30, 2026
3 checks passed
@hiddentao
hiddentao deleted the claude/adoring-knuth-gc63k6 branch September 30, 2026 15:45
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