57 lines
1.6 KiB
Text
57 lines
1.6 KiB
Text
|
|
let W = import "reflection/schemas/workflow.ncl" in
|
||
|
|
let D = import "reflection/defaults/workflow.ncl" in
|
||
|
|
|
||
|
|
# Workflow declaration for provisioning.
|
||
|
|
# Each layer is independent — layers form a set, not a chain.
|
||
|
|
# Regenerate artifacts after editing: ore workflow generate
|
||
|
|
# Preview changes: ore workflow diff
|
||
|
|
|
||
|
|
{
|
||
|
|
layers = [
|
||
|
|
|
||
|
|
# ── Commit-fast: pre-commit local checks ─────────────────────────────────
|
||
|
|
# Generates entries for .pre-commit-config.yaml (printed for manual merge).
|
||
|
|
{
|
||
|
|
id = "commit-fast",
|
||
|
|
trigger = 'OnCommit,
|
||
|
|
validations = [
|
||
|
|
"rust-fmt",
|
||
|
|
"rust-clippy",
|
||
|
|
"nextest-ci-test",
|
||
|
|
"deny-subset",
|
||
|
|
"docs-drift",
|
||
|
|
"manifest-coverage",
|
||
|
|
],
|
||
|
|
builds = [],
|
||
|
|
distributions = [],
|
||
|
|
providers = [W.pre_commit "pre-commit"],
|
||
|
|
},
|
||
|
|
|
||
|
|
# ── CI-standard: push/PR pipeline ────────────────────────────────────────
|
||
|
|
# Generates .woodpecker/ci.yml and justfiles/workflow.just.
|
||
|
|
{
|
||
|
|
id = "ci-standard",
|
||
|
|
trigger = 'OnPR,
|
||
|
|
validations = [
|
||
|
|
"rust-clippy-all",
|
||
|
|
"nextest-ci",
|
||
|
|
"deny-subset",
|
||
|
|
"docs-check",
|
||
|
|
"nickel-typecheck",
|
||
|
|
"nushell-check",
|
||
|
|
],
|
||
|
|
builds = ["release-native"],
|
||
|
|
distributions = [],
|
||
|
|
providers = [
|
||
|
|
W.woodpecker ".woodpecker/ci.yml",
|
||
|
|
W.justfile "ci-standard",
|
||
|
|
],
|
||
|
|
},
|
||
|
|
|
||
|
|
],
|
||
|
|
|
||
|
|
validations = D.validations,
|
||
|
|
builds = D.builds,
|
||
|
|
distributions = {},
|
||
|
|
}
|