Skip to main content

Gleam

Running the pre-built Gleam pipeline directly

Run the following command to run the pre-built Gleam Pipeline without having to initialize a project:

fluentci run gleam build

Add gleam Pipeline to your project

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

fluentci init -t gleam

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 .

Or simply:

fluentci

Jobs

JobDescription
checkRun type checking
formatFormat source code
testRun the tests
buildBuild the project

Programmatic usage

You can also use this pipeline programmatically:

import { check, format, test, build } from "jsr:@fluentci/gleam";

await check();
await format();
await test();
await build();

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to build and test Gleam 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: check
run: fluentci run --wasm gleam check
- name: format
run: fluentci run --wasm gleam format
- name: test
run: fluentci run --wasm gleam test
- name: build
run: fluentci run --wasm gleam build