From a29a2af77b52a62fe6a75904aa0f181723c11442 Mon Sep 17 00:00:00 2001 From: pat-s Date: Tue, 3 Nov 2026 10:47:46 +0000 Subject: [PATCH] ci: add dummy pipelines for the stage-column graph demo --- .crow/build.yaml | 32 ++++++++++++++++++++++++++++++++ .crow/deploy.yaml | 28 ++++++++++++++++++++++++++++ .crow/docs.yaml | 16 ++++++++++++++++ .crow/lint.yaml | 32 ++++++++++++++++++++++++++++++++ .crow/notify.yaml | 13 +++++++++++++ .crow/release.yaml | 17 +++++++++++++++++ .crow/test.yaml | 44 ++++++++++++++++++++++++++++++++++++++++++++ README.md | 4 ++++ 8 files changed, 186 insertions(+) create mode 100644 .crow/build.yaml create mode 100644 .crow/deploy.yaml create mode 100644 .crow/docs.yaml create mode 100644 .crow/lint.yaml create mode 100644 .crow/notify.yaml create mode 100644 .crow/release.yaml create mode 100644 .crow/test.yaml create mode 100644 README.md diff --git a/.crow/build.yaml b/.crow/build.yaml new file mode 100644 index 0000000..d42d5d8 --- /dev/null +++ b/.crow/build.yaml @@ -0,0 +1,32 @@ +when: + - event: [push, manual] + +matrix: + GO: + - "1.24" + - "1.25" + - "1.26" + +steps: + deps: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [] + commands: + - echo "go mod download (Go $${GO})" + - sleep 5 + compile: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [deps] + commands: + - sleep 20 + unit: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [compile] + commands: + - sleep 10 + - if [ "$${GO}" = "1.26" ]; then echo "unit tests fail on Go 1.26"; exit 1; fi + package: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [unit] + commands: + - sleep 5 diff --git a/.crow/deploy.yaml b/.crow/deploy.yaml new file mode 100644 index 0000000..e750309 --- /dev/null +++ b/.crow/deploy.yaml @@ -0,0 +1,28 @@ +when: + - event: [push, manual] + +depends_on: + - test + +approval: + required: true + approvers: + users: + - pat-s + timeout: 24h + +skip_clone: true + +steps: + migrate: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [] + commands: [sleep 5] + rollout: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [migrate] + commands: [sleep 10] + verify: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [rollout] + commands: [sleep 5] diff --git a/.crow/docs.yaml b/.crow/docs.yaml new file mode 100644 index 0000000..eb97f64 --- /dev/null +++ b/.crow/docs.yaml @@ -0,0 +1,16 @@ +when: + - event: [push, manual] + +steps: + prepare: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [] + commands: [sleep 3] + render: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [prepare] + commands: [sleep 6] + linkcheck: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [prepare, render] + commands: [sleep 4] diff --git a/.crow/lint.yaml b/.crow/lint.yaml new file mode 100644 index 0000000..6ca88ea --- /dev/null +++ b/.crow/lint.yaml @@ -0,0 +1,32 @@ +when: + - event: [push, manual] + +steps: + fmt: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [] + commands: [sleep 4] + vet: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [] + commands: [sleep 12] + eslint: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [] + commands: + - echo "slow on purpose, stays running for ~10 minutes" + - sleep 600 + typecheck: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [] + commands: [sleep 30] + license-headers: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [] + commands: [sleep 3] + report: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [fmt, vet, eslint, typecheck, license-headers] + commands: [echo "only runs when lint failed"] + when: + - status: failure diff --git a/.crow/notify.yaml b/.crow/notify.yaml new file mode 100644 index 0000000..9d9d455 --- /dev/null +++ b/.crow/notify.yaml @@ -0,0 +1,13 @@ +when: + - event: [push, manual] + +depends_on: + - deploy + +skip_clone: true + +steps: + announce: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [] + commands: [echo "deployed"] diff --git a/.crow/release.yaml b/.crow/release.yaml new file mode 100644 index 0000000..335b0ac --- /dev/null +++ b/.crow/release.yaml @@ -0,0 +1,17 @@ +when: + - event: [push, manual] + +depends_on: + - build + +skip_clone: true + +steps: + changelog: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [] + commands: [sleep 3] + publish: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [changelog] + commands: [sleep 3] diff --git a/.crow/test.yaml b/.crow/test.yaml new file mode 100644 index 0000000..1c3311a --- /dev/null +++ b/.crow/test.yaml @@ -0,0 +1,44 @@ +when: + - event: [push, manual] + +steps: + prepare: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [] + commands: [sleep 5] + db-migrate: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [prepare] + commands: [sleep 8] + api: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [prepare] + commands: [sleep 15] + web: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [prepare] + commands: [sleep 25] + integration: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [db-migrate, api] + commands: [sleep 20] + flaky-contract-check: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [api] + failure: ignore + commands: + - sleep 6 + - echo "allowed to fail" + - exit 1 + e2e: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [prepare, integration, web] + commands: [sleep 30] + smoke: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [e2e] + commands: [sleep 5] + upload-coverage-artifacts-to-object-storage: + image: reg.devxy.io/docker.io/library/alpine:3.24 + depends_on: [api, smoke] + commands: [sleep 4] diff --git a/README.md b/README.md new file mode 100644 index 0000000..7d5a24a --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# crow-graph-demo + +Dummy pipelines to exercise the stage-column pipeline graph from crowci/crow#1689. +Every step only sleeps and echoes; nothing is built or deployed.