saturn.json
A game needs a saturn.json only to change how it is checked, formatted, shipped or released. It goes beside the project file, and every key is optional:
{ "main": "main", "remote": "origin", "ship": "merge", "format": { "run": "stylua", "extensions": [".luau", ".lua"] }, "checks": [ { "name": "Build", "run": "rojo build -o {tmp}/game.rbxl" }, { "name": "Tests", "run": "lune run tests" } ]}ship reads saturn.json again once it has brought main in. The checks, the formatter and the "ship" setting that apply are the ones main has now, even for work that began before they changed.
main and remote
Section titled “main and remote”The branch finished work is on, which Saturn finds when nothing is said, and the git remote it is on, origin when nothing is said.
project
Section titled “project”The Rojo project file, when it is not the one Saturn would find: default.project.json, or else the first *.project.json by name.
"merge" pushes a ship to main. "pr" makes ship open a pull request (through the gh command) instead. saturn ship --pr does it once. Nothing given to a single ship turns the setting off.
checks
Section titled “checks”A list that replaces the detected checks. Saturn’s own run as well.
{tmp} in run is a temporary folder that is deleted afterwards. A check is over when its command is: what that leaves running behind it, such as a compiler’s daemon, is not waited for.
inputs and cache
Section titled “inputs and cache”On Saturn Rings, a check that has passed on the very same files is not run again, by anyone in the game.
"inputs": ["src/", "default.project.json"]says what a check reads, and then only a change to those has it run. Without it, a check reads the whole game."cache": falsehas it run every time. That is for a check that depends on more than the game’s files: on what.gitignoreleaves out, on the programs a computer has, or on the day.
What passed counts for the same command, the same Saturn and the same kind of computer, and for the same version of a tool Saturn picked itself.
These are never passed over:
- a check that failed, one whose tool is missing, and Saturn’s own,
- one that has another check after it that is going to run, since that one may need what this one makes. Only those at the end of the list are passed over, so the ones that read the least are best put last,
- any check before
ship --release, and in a game that releases a target without abuildof its own.
A person’s ship goes only by what people ran, never by what an agent did.
Leaves out checks by name, detected or Saturn’s own: "skip": ["File names"].
format
Section titled “format”run is run with the changed files added to the end, for files whose names end in one of extensions. false turns formatting off.
release
Section titled “release”What ship --release builds, and which channels anyone may play. See Releasing.