24 lines
747 B
YAML
24 lines
747 B
YAML
# Unified Woodpecker CI for a source-only Marqdo component.
|
|
#
|
|
# The published `marqdo-ci-shell` image is the only runtime dependency: one
|
|
# Ubuntu 24.04 base, the released CLI/Bundle, and common test tools. No image
|
|
# variance, apt install, Rust toolchain download, CLI rebuild or sibling checkout.
|
|
when:
|
|
- event: [pull_request, manual]
|
|
- event: push
|
|
branch: main
|
|
|
|
steps:
|
|
test:
|
|
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5
|
|
commands:
|
|
- sh scripts/test.sh
|
|
- |
|
|
set -eu
|
|
out=$(mktemp -d)
|
|
trap 'rm -rf -- "$out"' EXIT
|
|
archive=$(sh scripts/package.sh "$out")
|
|
(cd "$out" && sha256sum -c "$(basename "$archive").sha256")
|
|
git rev-parse HEAD
|
|
cat "$archive.sha256"
|