Skip to main content

Deno

Running the pre-built Deno pipeline directly

Run the following command to run the pre-built Deno pipeline without having to initialize a project:

fluentci run deno test

Add Deno Pipeline to your project

Run the following command to add Deno pipeline to your project:

fluentci init -t deno

This will create a .fluentci directory in your project, feel free to customize the pipeline for your needs. You can then run the following command to start the pipeline:

fluentci run .

Environment variables (Deno Deploy)

VariableDescriptionDefault
DENO_PROJECTYour project name
NO_STATICDisable static assetsfalse
EXCLUDEExclude files from deploy
DENO_DEPLOY_TOKENYour Deno Deploy token
DENO_MAIN_SCRIPTYour main scriptmain.tsx

Jobs

JobDescription
fmtFormat your code
lintLint your code
testRun your tests
deployDeploy to Deno Deploy

Programmatic usage

You can also use this pipeline programmatically:

import { fmt, lint, test } from from "jsr:@fluentci/deno";

await fmt();
await lint();
await test();

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