Skip to content

ci: add GitHub Actions workflow for the unit test suite - #46

Merged
erunion merged 5 commits into
mainfrom
erunion/ci-unit-tests-bd6e
Aug 27, 2026
Merged

ci: add GitHub Actions workflow for the unit test suite#46
erunion merged 5 commits into
mainfrom
erunion/ci-unit-tests-bd6e

Conversation

@erunion

@erunion erunion commented Aug 27, 2026

Copy link
Copy Markdown
Member

🧰 Changes

Adds .github/workflows/ci.yml so pull requests and pushes to main run the unit test suite (npm test).

The workflow:

  • Checks out the repo and installs from package-lock.json with npm ci
  • Caches npm dependencies via actions/setup-node
  • Tests against Node 22, current LTS, and latest

Raises engines.node from >=18 to >=22.

Also updates @readmeio/git-format to current main (git+https://github.com/readmeio/git-format.git, f7d72069). The lockfile was still pinned to 4806df45, whose package.json listed a flattened node_modules tree.

Permissions are limited to contents: read. In-progress runs for the same ref are cancelled when a newer commit is pushed.

🧬 QA & Testing

  • Locally: clean npm ci then npm test131/131 passed
  • GitHub Actions: Test Suite jobs for 22, lts/*, and latest on this PR
Open in Web Open in Cursor 

cursoragent and others added 2 commits August 27, 2026 17:07
Run npm test on pull requests and pushes to main across current Node LTS
releases so regressions are caught before merge.

Co-authored-by: Jon Ursenbach <erunion@users.noreply.github.com>
@readmeio/git-format lists the darwin-only fsevents package as a required
dependency, which makes a plain npm ci fail on Ubuntu.

Co-authored-by: Jon Ursenbach <erunion@users.noreply.github.com>
@greptile-apps

greptile-apps Bot commented Aug 27, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains; the dependency specification and lockfile now consistently resolve @readmeio/git-format over HTTPS, so the previously reported SSH credential failure is fixed.

Reviews (3): Last reviewed commit: "chore: require Node.js 22 or later" | Re-trigger Greptile

Comment thread .github/workflows/ci.yml Outdated
Without --add, the second insteadOf assignment overwrites the first, so
the lockfile's ssh://git@github.com/ mapping is dropped.

Co-authored-by: Jon Ursenbach <erunion@users.noreply.github.com>
@erunion erunion added the enhancement New feature or request label Aug 27, 2026
cursoragent and others added 2 commits August 27, 2026 17:18
The lockfile was still on 4806df45, whose package.json listed a flattened
node_modules tree including darwin-only fsevents. Point the dependency at
git+https://github.com/readmeio/git-format.git (current main, f7d72069)
and drop the CI --force / SSH URL rewrites that were only needed for that
old commit.

Co-authored-by: Jon Ursenbach <erunion@users.noreply.github.com>
Raise engines.node from >=18 to >=22 and test CI against 22, current LTS,
and latest.

Co-authored-by: Jon Ursenbach <erunion@users.noreply.github.com>
@erunion
erunion marked this pull request as ready for review August 27, 2026 17:22
@erunion
erunion merged commit d052f03 into main Aug 27, 2026
4 checks passed
@erunion
erunion deleted the erunion/ci-unit-tests-bd6e branch August 27, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants