Skip to main content

Build and test Deno applications

This page explains how to build and test Deno applications with FluentCI.

Before you begin

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

  • Have your Deno project handy, including deno.json and test files.

Using the Deno Plugin

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

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

fluentci run --wasm deno test
fluentci run --wasm deno compile -A --output myapp --target x86_64-unknown-linux-gnu main.ts # suppose main.ts is your entry file

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to build and test Deno 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: fmt
run: fluentci run --wasm deno fmt
- name: lint
run: fluentci run --wasm deno lint
- name: tests
run: fluentci run --wasm deno test
- name: compile
run: fluentci run --wasm deno compile -A --output myapp --target
x86_64-unknown-linux-gnu main.ts