Skip to content

Latest commit

 

History

History
103 lines (73 loc) · 2.4 KB

README.md

File metadata and controls

103 lines (73 loc) · 2.4 KB

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();