Open source, Apache 2.0
Local pipeline runner for developers
Write one YAML file. Run it by hand or on a schedule, and watch it from the terminal or TRUSS Desktop. One binary for Linux, macOS and Windows.
Go standard library and one YAML parser. No remote server, no account.
- lint/vet1.4s
- test/unit2.8s
- docs/build2.2s
- release/build1.5s
- release/publish1.2s
- 909:14:03step lint/vet | no issues found
- 1009:14:03step test/unit | ok internal/engine 0.9s
- 1109:14:03step docs/build | 9 pages built
- 1209:14:03step test/unit | ok internal/executor 1.2s
- 1309:14:04step lint/vet finished duration 1.400s exit 0
- 1409:14:04step docs/build finished duration 2.200s exit 0
- 1509:14:05step test/unit finished duration 2.800s exit 0
- 1709:14:06step release/build | built bin/truss
- 1809:14:07step release/build finished duration 1.500s exit 0
- 2009:14:07step release/publish | uploaded 6 archives
- 2109:14:08step release/publish finished duration 1.200s exit 0
- 2209:14:08summary succeeded steps 5 duration 6.700s
Pipelines are files in your repository
Each pipeline is a file in .truss/flows/. TRUSS reads it and builds the graph: jobs run side by side, and a job with needs waits.
- version: "1"
- pipeline:
- name: ci
- concurrency: 2
- on:
- schedule:
- - cron: "30 1 * * *"
- missed: run
- jobs:
- lint:
- steps:
- - id: vet
- run: go vet ./...
- test:
- steps:
- - id: unit
- run: go test ./...
- timeout: 10m
- release:
- needs: [lint, test]
- steps:
- - id: build
- run: go build ./cmd/app
$ truss validate
truss.yaml is valid: project demo
.truss/flows/ci.yaml is valid: pipeline ci, 3 steps, concurrency 2
schedule 30 1 * * * (local time, missed: run)
step lint/vet
step test/unit
step release/build needs lint/vet, test/unit
Three ways to run a pipeline
Start with your shell. Add the daemon when you want schedules and a history, and Desktop when you want to watch.
Run it in your shell
No server and no account. TRUSS runs the pipeline in your shell, with your environment, and prints the log as it happens.
$ truss run ciSee the commandsLet the daemon run it
A background service with a queue, a history and schedules. Register your pipelines once and one API serves every client.
$ truss daemon start
$ truss register --allSee the daemonWatch it in Desktop
A dashboard in your browser, served by the same binary. It shows pipelines, step graphs and live logs.
$ truss desktopSee DesktopSchedules with a catch-up run
A laptop sleeps. By default TRUSS skips a time that passed while it was off, and the history says so. Setmissed: run and it runs once, as soon as the machine is back.
on:
schedule:
- cron: "0 9 * * 1-5"
missed: run- 09:00 planned, missed while the machine was off
- 11:02 the machine is back: one catch-up run starts
- missed: run runs it once, however many times were missed
TRUSS Desktop shows every run
Pipelines, step graphs and a live log in your browser, served by the same binary. It reads the daemon, which also records the runs you start in your shell with truss run --track.
20261116-091402-3aefdd
succeededmanual run of release
- Progress
- 5 / 5 steps
- Ended
- 09:14:08
- Elapsed
- 6.7s
- lint/vet1.4s
- test/unit2.8s
- docs/build2.2s
- release/build1.5s
- release/publish1.2s
- 909:14:03step lint/vet | no issues found
- 1009:14:03step test/unit | ok internal/engine 0.9s
- 1109:14:03step docs/build | 9 pages built
- 1209:14:03step test/unit | ok internal/executor 1.2s
- 1309:14:04step lint/vet finished duration 1.400s exit 0
- 1409:14:04step docs/build finished duration 2.200s exit 0
- 1509:14:05step test/unit finished duration 2.800s exit 0
- 1709:14:06step release/build | built bin/truss
- 1809:14:07step release/build finished duration 1.500s exit 0
- 2009:14:07step release/publish | uploaded 6 archives
- 2109:14:08step release/publish finished duration 1.200s exit 0
- 2209:14:08summary succeeded steps 5 duration 6.700s
Install TRUSS
One binary. Download it for Linux, macOS or Windows from GitHub Releases, or install it with Go 1.27.3 or newer.