Repository navigation
Fix README badges and move CI to GitHub Actions - #36
Merged
Merged
Conversation
- 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
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.
Summary
The README badges were stale, and no CI ran for this repo since Travis CI stopped.
.github/workflows/ci.yml) that runsnpm run build(jshint, uglify, mocha) on Node 22, 24 and 26. The badge now points at it..travis.ymlis removed.maxAgeparameter.grunt-contrib-jshint~0.4.3 → ~0.12.0: the old version pulls jshint 1.1.0, which installs esprima from a GitHubmastertarball. That makesnpm installunreliable.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, sonpm testprinted nothing. The GruntfilemochaTestconfig moves to the 0.13 shape, andtest/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 testandnpm run buildpass on Node 22, 24 and 26 locally: jshint clean, and all 29 tests pass.npm testandnpm run buildfail.npm installfails (esprima tarball from GitHub).master, which has no workflow until this merges.🤖 Generated with Claude Code
https://claude.ai/code/session_01HSF37GZBZk7YCxTXR58oyX