Skip to content

A ready-to-use CI/CD Pipeline and jobs for Gleam projects.

License

Notifications You must be signed in to change notification settings

fluent-ci-templates/gleam-pipeline

Repository files navigation

Gleam Pipeline

fluentci pipeline deno module deno compatibility dagger-min-version codecov ci

A ready-to-use CI/CD Pipeline for your Gleam projects.

🚀 Usage

Run the following command:

fluentci run gleam_pipeline

Or, if you want to use it as a template:

fluentci init -t gleam

This will create a .fluentci folder in your project.

Now you can run the pipeline with:

dagger run fluentci .

Or simply:

fluentci

🧩 Dagger Module

Use as a Dagger module:

dagger install github.com/fluent-ci-templates/gleam-pipeline@main

Call a function from the module:

dagger -m github.com/fluent-ci-templates/gleam-pipeline@main call \
  check --src .

dagger -m github.com/fluent-ci-templates/gleam-pipeline@main call \
  format --src .

dagger -m github.com/fluent-ci-templates/gleam-pipeline@main call \
  test --src .

dagger -m github.com/fluent-ci-templates/gleam-pipeline@main call \
  build --src .

✨ Jobs

Job Description
check Run type checking
format Format source code
test Run the tests
build Build the project
check(
  src: Directory | string | undefined = "."
): Promise<string>

format(
  src: Directory | string | undefined = "."
): Promise<Directory | string>

test(
  src: Directory | string | undefined = "."
): Promise<string>

build(
  src: Directory | string | undefined = "."
): Promise<Directory | string>

👨‍💻 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();