A ready-to-use CI/CD Pipeline for your Gleam projects.
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
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 .
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>
You can also use this pipeline programmatically:
import { check, format, test, build } from "jsr:@fluentci/gleam";
await check();
await format();
await test();
await build();