Files
marqdo-view/.github/workflows/ci.yml

90 lines
2.7 KiB
YAML

name: ci
on:
push:
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUST_MIN_STACK: "8388608"
jobs:
no-legacy:
name: no retired contracts (G01/G12)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Fail on retired Analysis/Trace/flags/Tool negotiation
shell: bash
run: scripts/check-no-legacy.sh
- name: Current docs describe the rc.6 baseline
shell: bash
run: scripts/check-docs.sh
quality:
name: fmt / clippy / tests
runs-on: ubuntu-24.04
env:
CARGO_HOME: ${{ github.workspace }}/.cargo-home
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.89.0"
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --locked --all-targets -- -D warnings
- name: Tests
run: cargo test --locked
frozen-acceptance:
name: frozen rc.6 acceptance (install / Observation / SSE / export / browser)
runs-on: ubuntu-24.04
needs: [no-legacy, quality]
env:
CARGO_TERM_COLOR: always
RUST_MIN_STACK: "8388608"
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/tests/.cache/pw-browsers
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.89.0"
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Fetch the official frozen rc.6 CLI and verify its identity
shell: bash
run: |
set -euo pipefail
frozen="$(scripts/frozen-beta.sh fetch "$RUNNER_TEMP/marqdo-frozen")"
echo "MARQDO_BIN=$frozen" >> "$GITHUB_ENV"
- name: Install Chromium
run: |
(cd tests/browser && npm ci --no-audit --no-fund)
(cd tests/browser && npx playwright install --with-deps chromium)
- name: Run one-command acceptance (G01-G12)
run: VIEW_EVIDENCE_OUT="$RUNNER_TEMP/view-evidence/manifest.json" scripts/acceptance.sh
- name: Upload acceptance evidence
uses: actions/upload-artifact@v4
with:
name: view-evidence-${{ github.sha }}
path: |
dist/acceptance/manifest.json
dist/acceptance/logs/
dist/marqdo-view-*.tar.gz
dist/marqdo-view-*.tar.gz.sha256
if-no-files-found: error