Skip to content

test: Add bun testing for apiary - #3986

Draft
danieljbruce wants to merge 3 commits into
mainfrom
bun-testing-apiary
Draft

test: Add bun testing for apiary#3986
danieljbruce wants to merge 3 commits into
mainfrom
bun-testing-apiary

Conversation

@danieljbruce

@danieljbruce danieljbruce commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Description

This pull request does for apiary what https://github.com/googleapis/google-cloud-node/pull/9208/changes did for google-cloud-node. It adds a CI test that uses bun run test instead of npm test

Adds a new GitHub Actions presubmit workflow (.github/workflows/presubmit-bun.yml) to run the unit test suite against the Bun JavaScript runtime across Node versions 22, 24, and 26.

Key details:

  • Sets up Bun 1.3.14 via oven-sh/setup-bun pinned to SHA 0c5077e51419868618aeaa5fe8019c62421857d6 (v2.2.0).
  • Uses npm install for dependency management to ensure lockfile and version consistency between CI environments.
  • Executes tests with bun run test.

Impact

Ensures ongoing compatibility with the Bun runtime and catches runtime-specific regressions early for users running googleapis in Bun environments. This change is CI-only and introduces no breaking changes or runtime library modifications.

Testing

  • Added .github/workflows/presubmit-bun.yml to run on pull requests.
  • Validated test matrix against Node 22, 24, and 26 with Bun 1.3.14.

Additional Information

  • Dependencies are installed with npm rather than bun install to preserve package resolution consistency with the existing CI pipeline.
  • Sets MOCHA_THROW_DEPRECATION: false consistent with existing test jobs.

@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label Aug 28, 2026
@danieljbruce danieljbruce added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kokoro:force-run Add this label to force Kokoro to re-run the tests. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant