diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 73c85a3..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,36 +0,0 @@ -# The published rc.4 CLI needs glibc 2.39. Use the matching Playwright image -# so the installed-tool tests get both Ubuntu Noble and Chromium. -when: - - event: [pull_request, manual] - - event: push - branch: master - -steps: - no-legacy: - image: mcr.microsoft.com/playwright:v1.49.0-noble - commands: - - apt-get update - - apt-get install -y --no-install-recommends ca-certificates curl git - - scripts/check-no-legacy.sh - - scripts/check-docs.sh - - frozen-acceptance: - image: mcr.microsoft.com/playwright:v1.49.0-noble - environment: - PLAYWRIGHT_BROWSERS_PATH: /ms-playwright - RUST_MIN_STACK: "8388608" - CI: "true" - CI_SYSTEM: woodpecker - commands: - - apt-get update - - apt-get install -y --no-install-recommends build-essential ca-certificates curl git python3 - - curl -fsSL --retry 3 https://sh.rustup.rs -o /tmp/marqdo-view-rustup.sh - - sh /tmp/marqdo-view-rustup.sh -y --profile minimal --default-toolchain 1.89.0 --component rustfmt --component clippy --no-modify-path - - export PATH="$HOME/.cargo/bin:$PATH" - - (cd tests/browser && npm ci --no-audit --no-fund) - - | - frozen_dir="$(mktemp -d)" - MARQDO_BIN="$(scripts/frozen-beta.sh fetch "$frozen_dir")" - export MARQDO_BIN - scripts/acceptance.sh - cat docs/evidence/452e9a32bd9e40dba427d4180691c58bab74449e/manifest.json diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml new file mode 100644 index 0000000..f29a062 --- /dev/null +++ b/.woodpecker/ci.yml @@ -0,0 +1,34 @@ +# Unified Woodpecker CI for marqdo-view. +# +# Rust build/non-browser acceptance reuses the shared rust image; the real +# Chromium suite runs in the matching Playwright image against the binary built +# in the previous step. No per-run rustup install. +when: + event: [push, pull_request, manual] + +steps: + build-acceptance: + image: git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5 + commands: + - cargo fmt --all -- --check + - cargo clippy --all-targets --locked -- -D warnings + - cargo test --locked + - cargo build --release --locked + - SKIP_BROWSER=1 scripts/acceptance.sh + + browser: + depends_on: [build-acceptance] + image: mcr.microsoft.com/playwright:v1.49.0-noble + environment: + PLAYWRIGHT_BROWSERS_PATH: /ms-playwright + commands: + - (cd tests/browser && npm ci --no-audit --no-fund) + - | + set -eu + curl -fsSL --retry 3 -o /tmp/marqdo.tar.gz "https://git.cflmy.cn/cflmy/marqdo-cli/releases/download/v3.0.0-rc.5/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu.tar.gz" + echo "fd7a313e0ddaf38a9b1901ff2a9aa7b9a0a153e65522a9c0c60f01e2549f583b /tmp/marqdo.tar.gz" | sha256sum -c - + mkdir -p /opt/marqdo + tar -xzf /tmp/marqdo.tar.gz -C /opt/marqdo + export MARQDO_BIN=/opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo + "$MARQDO_BIN" --version + ./scripts/test-browser.sh