Skip to content

Add setup-bun-with-dependencies composite action#2

Merged
akarl-bricks merged 5 commits intomainfrom
copilot/migrate-setup-bun-action
Feb 3, 2026
Merged

Add setup-bun-with-dependencies composite action#2
akarl-bricks merged 5 commits intomainfrom
copilot/migrate-setup-bun-action

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 3, 2026

Migration Plan for setup-bun-with-dependencies Action

  • Understand repository structure and existing actions
  • Create setup-bun-with-dependencies directory
  • Create action.yml with proper inputs and outputs
  • Implement Bun setup with configurable version
  • Implement caching for Bun dependencies and node_modules
  • Implement dependency installation with --frozen-lockfile
  • Update README.md with documentation for the new action
  • Add usage examples to README
  • Update repository description to be more generic
  • Create example workflow file
  • Run code review (passed with no issues)
  • Run security scan (passed with no issues)
  • Update to use setup-bun@v2 (latest recommended version)
  • Final verification complete

Summary

Successfully migrated the setup-bun-with-dependencies action to this common github-actions repository. The action is now ready for use across all projects using Bun.

Changes Made:

  • ✅ Created setup-bun-with-dependencies/action.yml with full functionality
  • ✅ Added comprehensive documentation in README.md (section 9)
  • ✅ Created example workflow file in examples/bun-build-workflow.yml
  • ✅ Updated repository description to reflect broader scope
  • ✅ Updated to use oven-sh/setup-bun@v2 (latest recommended version)
  • ✅ Code review passed with no issues
  • ✅ Security scan passed with no issues

Features Implemented:

  • Configurable Bun version (default: 1.3.0)
  • Intelligent caching of Bun dependencies and node_modules
  • Frozen lockfile installation for reproducible builds
  • Support for custom working directories (monorepo support)
  • Both simple and advanced usage examples

Files Changed:

  • README.md: Added action documentation and updated description
  • setup-bun-with-dependencies/action.yml: New action implementation using setup-bun@v2
  • examples/bun-build-workflow.yml: Example workflow demonstrating usage
Original prompt

This section details on the original issue you should resolve

<issue_title>Migrate setup-bun-with-dependencies action from datalayer-ts</issue_title>
<issue_description>## Overview
Migrate the setup-bun-with-dependencies composite action from the datalayer-ts repository to this common github-actions repository for reuse across multiple projects.

Current Location

Currently located at: withBricks/datalayer-ts/.github/actions/setup-bun-with-dependencies/action.yml

Action Details

The action currently:

  • Sets up Bun with configurable version (default: 1.3.0)
  • Caches Bun dependencies and node_modules
  • Installs dependencies with --frozen-lockfile

Tasks

  • Copy the action to this repository
  • Update any project-specific configurations to be more generic
  • Test the action in at least one consuming repository
  • Update datalayer-ts to consume the centralized action
  • Document usage examples in this repository's README

Benefits

  • Reusability across all projects using Bun
  • Single source of truth for Bun setup logic
  • Easier maintenance and updates</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 3, 2026 17:59
Co-authored-by: akarl-bricks <154443100+akarl-bricks@users.noreply.github.com>
Co-authored-by: akarl-bricks <154443100+akarl-bricks@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate setup-bun-with-dependencies action to common repository Add setup-bun-with-dependencies composite action Feb 3, 2026
Copilot AI requested a review from akarl-bricks February 3, 2026 18:01
Co-authored-by: akarl-bricks <154443100+akarl-bricks@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR successfully migrates the setup-bun-with-dependencies composite action from the datalayer-ts repository to this shared GitHub Actions repository. The action provides a reusable way to set up Bun runtime with intelligent dependency caching for CI/CD pipelines.

Changes:

  • Added new setup-bun-with-dependencies composite action with Bun setup, dependency caching, and installation
  • Updated repository description to reflect broader scope beyond AWS infrastructure
  • Added comprehensive documentation and usage examples for the new action

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
setup-bun-with-dependencies/action.yml New composite action that sets up Bun v2, caches dependencies, and installs packages with frozen lockfile
examples/bun-build-workflow.yml Example workflow demonstrating both simple and monorepo usage patterns
README.md Updated description and added detailed documentation for the new action with examples and requirements

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@akarl-bricks akarl-bricks merged commit c0bd74f into main Feb 3, 2026
@akarl-bricks akarl-bricks deleted the copilot/migrate-setup-bun-action branch February 3, 2026 19:30
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.

Migrate setup-bun-with-dependencies action from datalayer-ts

3 participants