Skip to content

fix: dynamic version test + upgrade setup-node to v4#1

Merged
nmccready merged 1 commit intomainfrom
fix/dynamic-version-test
Mar 14, 2026
Merged

fix: dynamic version test + upgrade setup-node to v4#1
nmccready merged 1 commit intomainfrom
fix/dynamic-version-test

Conversation

@nmccready-tars
Copy link
Copy Markdown

Problem

All CI pipelines (release, publish) are failing because the version test in sync-agents.bats hardcodes v0.1.0:

not ok 3 --version shows version from package.json
#   \`[[ "\$output" == *"sync-agents v0.1.0"* ]]\` failed

After commit-and-tag-version bumped to 0.1.1, the test breaks → tests fail → release skipped → publish never runs.

Fix

  1. Dynamic version in test — Read version from package.json at test time instead of hardcoding it. The test will now survive all future version bumps.

  2. Upgrade actions/setup-node v3 → v4 — Node.js 20 actions are deprecated (forced to Node 24 starting June 2026). Fixes the deprecation warnings in CI.

Changes

  • test/sync-agents.bats: Extract PACKAGE_VERSION from package.json, use in --version test
  • .github/workflows/tests.yml: setup-node@v3setup-node@v4
  • .github/workflows/commitlint.yml: setup-node@v3setup-node@v4

Testing

All 38 tests pass locally ✅

- Read version from package.json in test instead of hardcoding v0.1.0
- This was causing all CI to fail after version bumps (tests → release → publish)
- Upgrade actions/setup-node from v3 to v4 (Node.js 20 deprecation warning)
@nmccready nmccready merged commit fd89bcd into main Mar 14, 2026
6 checks passed
@nmccready nmccready deleted the fix/dynamic-version-test branch April 8, 2026 02:44
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