Skip to content

Add Bun CI, Dependabot, dependency review, tests, and exports#3

Merged
tdtgit merged 1 commit intomainfrom
codex/add-dependabot-config-and-tests
Mar 27, 2026
Merged

Add Bun CI, Dependabot, dependency review, tests, and exports#3
tdtgit merged 1 commit intomainfrom
codex/add-dependabot-config-and-tests

Conversation

@tdtgit
Copy link
Copy Markdown
Owner

@tdtgit tdtgit commented Mar 27, 2026

Motivation

  • Add automated CI and dependency automation to ensure dependencies and tests run on each PR and push.
  • Make utility functions available for testing and reuse by exporting them from the module.
  • Add a dependency review workflow to surface dependency changes in PRs.

Description

  • Add .github/dependabot.yml to enable weekly Dependabot updates for bun and github-actions with grouped updates and commit-message prefixes.
  • Add .github/workflows/ci.yml to run CI on push and pull_request, which checks out code, sets up Bun with oven-sh/setup-bun@v2, installs with bun install --frozen-lockfile, and runs bun test.
  • Add .github/workflows/dependency-review.yml to enable the actions/dependency-review-action@v4 on PRs.
  • Export normalize and formatTransactionDetails in index.ts so they can be tested and reused, and keep the existing normalization and formatting logic intact.
  • Add index.test.ts with unit tests for normalize and formatTransactionDetails and add a test script to package.json mapping to bun test.

Testing

  • Ran bun test, which executed the new index.test.ts test suite that covers normalize and formatTransactionDetails, and the tests passed.
  • CI workflow will run bun install --frozen-lockfile followed by bun test on push/PR as configured in .github/workflows/ci.yml.
  • Dependency review action is configured to run on PRs using actions/dependency-review-action@v4 to fail fast on risky dependency changes.

Codex Task

@tdtgit tdtgit merged commit f8edf01 into main Mar 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant