Skip to main content

Build and test Bun applications

This guide will show you how to build and test Bun applications with FluentCI.

Before you begin

The instructions on this page assume that you are familiar with Bun. In addition:

  • Have your Bun project handy, including package.json and test files.

Using the Bun Plugin

You can use FluentCI to build Bun applications using bun plugin, no need to install Bun on your machine, FluentCI will handle everything for you.

The following commands can be used to build and test Bun applications:

fluentci run --wasm bun test
fluentci run --wasm bun build

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to build and test Bun applications:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: tests
run: fluentci run --wasm bun test
- name: build
run: fluentci run --wasm bun build