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.

releasesucceeded6.7s
stage 1 · 3 stepsstage 2 · 1 stepstage 3 · 1 steplintvet1.4stestunit2.8sdocsbuild2.2sreleasebuild1.5sreleasepublish1.2s
  1. lint/vet1.4s
  2. test/unit2.8s
  3. docs/build2.2s
  4. release/build1.5s
  5. release/publish1.2s
Logwhole rundone
  1. 109:14:02setup environment ready
  2. 209:14:02setup os linux
  3. 309:14:02setup arch amd64
  4. 409:14:02setup shell /bin/sh
  5. 509:14:02setup directory /home/me/release
  6. 609:14:02step lint/vet started
  7. 709:14:02step test/unit started
  8. 809:14:02step docs/build started
  9. 909:14:03step lint/vet | no issues found
  10. 1009:14:03step test/unit | ok internal/engine 0.9s
  11. 1109:14:03step docs/build | 9 pages built
  12. 1209:14:03step test/unit | ok internal/executor 1.2s
  13. 1309:14:04step lint/vet finished duration 1.400s exit 0
  14. 1409:14:04step docs/build finished duration 2.200s exit 0
  15. 1509:14:05step test/unit finished duration 2.800s exit 0
  16. 1609:14:05step release/build started
  17. 1709:14:06step release/build | built bin/truss
  18. 1809:14:07step release/build finished duration 1.500s exit 0
  19. 1909:14:07step release/publish started
  20. 2009:14:07step release/publish | uploaded 6 archives
  21. 2109:14:08step release/publish finished duration 1.200s exit 0
  22. 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.

  1. version: "1"
  2.  
  3. pipeline:
  4. name: ci
  5. concurrency: 2
  6.  
  7. on:
  8. schedule:
  9. - cron: "30 1 * * *"
  10. missed: run
  11.  
  12. jobs:
  13. lint:
  14. steps:
  15. - id: vet
  16. run: go vet ./...
  17. test:
  18. steps:
  19. - id: unit
  20. run: go test ./...
  21. timeout: 10m
  22. release:
  23. needs: [lint, test]
  24. steps:
  25. - id: build
  26. run: go build ./cmd/app
truss validate
concurrency 2schedule 30 1 * * * · missed: run
lintvettestunittimeout 10mreleasebuildneeds 2

$ 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

Schedules 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
machine off08:0009:0010:0011:0012:0009:00 plannedmissed11:02 catch-up runruns oncerelease · 6.7s
  1. 09:00 planned, missed while the machine was off
  2. 11:02 the machine is back: one catch-up run starts
  3. 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.

See Desktop

20261116-091402-3aefdd

succeeded

manual run of release

Progress
5 / 5 steps
Ended
09:14:08
Elapsed
6.7s
Workflowa step starts when the steps it needs have succeeded
stage 1 · 3 stepsstage 2 · 1 stepstage 3 · 1 steplintvet1.4stestunit2.8sdocsbuild2.2sreleasebuild1.5sreleasepublish1.2s
  1. lint/vet1.4s
  2. test/unit2.8s
  3. docs/build2.2s
  4. release/build1.5s
  5. release/publish1.2s
Logwhole rundone
  1. 109:14:02setup environment ready
  2. 209:14:02setup os linux
  3. 309:14:02setup arch amd64
  4. 409:14:02setup shell /bin/sh
  5. 509:14:02setup directory /home/me/release
  6. 609:14:02step lint/vet started
  7. 709:14:02step test/unit started
  8. 809:14:02step docs/build started
  9. 909:14:03step lint/vet | no issues found
  10. 1009:14:03step test/unit | ok internal/engine 0.9s
  11. 1109:14:03step docs/build | 9 pages built
  12. 1209:14:03step test/unit | ok internal/executor 1.2s
  13. 1309:14:04step lint/vet finished duration 1.400s exit 0
  14. 1409:14:04step docs/build finished duration 2.200s exit 0
  15. 1509:14:05step test/unit finished duration 2.800s exit 0
  16. 1609:14:05step release/build started
  17. 1709:14:06step release/build | built bin/truss
  18. 1809:14:07step release/build finished duration 1.500s exit 0
  19. 1909:14:07step release/publish started
  20. 2009:14:07step release/publish | uploaded 6 archives
  21. 2109:14:08step release/publish finished duration 1.200s exit 0
  22. 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.

go install github.com/afri-bit/truss/cmd/truss@latest