Skip to main content

Build and test Gleam applications

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

Before you begin

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

  • Be familiar with creating Gleam-based applications.
  • Have your Gleam project ready.

Using the Gleam Plugin

You can use FluentCI to build and test Gleam applications using the gleam plugin, no need to install Gleam on your machine, FluentCI will handle everything for you.

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

fluentci run --wasm gleam test
fluentci run --wasm gleam 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