Files
radicle-explorer/.ryph/setup.yml
T
Rūdolfs Ošiņš f79b23dde7 Share UI code through an npm workspace
Extracts the avatar components and the style tokens into shared/ui, which
both apps consume as a workspace package, to try out ADR 2. Nix and the
Docker setups are not updated yet.
2026-10-29 16:27:03 +01:00

36 lines
2.5 KiB
YAML

steps:
# One npm workspace at the root holds explorer, desktop and shared/ui.
- name: install npm dependencies
run: npm install --prefer-offline
# Explorer and radicle-httpd, in explorer/, with its own Cargo workspace.
- name: install Playwright Chromium (explorer e2e)
run: cd explorer && npx playwright install chromium
- name: install the pinned Radicle binaries for http-client and e2e tests
run: explorer/scripts/install-binaries
# Explorer's plain rust-toolchain pin installs with rustup's minimal
# profile, which has no clippy or rustfmt.
- name: add clippy and rustfmt to the pinned toolchain
run: cd explorer && rustup component add clippy rustfmt
# The cargo warm steps only fill the image's target/ directories. At run
# time cargo builds what a command needs when it runs, so a run that works
# on another workspace member doesn't wait for two Rust workspaces.
- name: warm clippy (explorer-rust lint, image builds only)
run: 'cd explorer && { [ "$RYPH_SETUP_PHASE" != image ] || RUSTFLAGS="-D warnings" cargo clippy --workspace --all-features --tests --locked; }'
- name: warm the Rust test build (explorer-rust test, image builds only)
run: 'cd explorer && { [ "$RYPH_SETUP_PHASE" != image ] || cargo test --workspace --all-features --no-run --locked; }'
# Desktop, in desktop/, with its own Cargo workspace.
- name: install Playwright WebKit (desktop e2e)
run: cd desktop && npx playwright install webkit
- name: install the pinned Radicle binaries for desktop e2e tests
run: desktop/scripts/install-binaries
- name: warm desktop clippy (desktop/scripts/check-rs, image builds only)
run: 'cd desktop && mkdir -p build && { [ "$RYPH_SETUP_PHASE" != image ] || cargo clippy --workspace --all-targets --locked; }'
- name: warm desktop cargo test (desktop/scripts/check-rs, image builds only)
run: 'cd desktop && { [ "$RYPH_SETUP_PHASE" != image ] || cargo test --workspace --no-run --locked; }'
- name: warm the desktop e2e backend (desktop/tests/support/globalSetup.ts, image builds only)
run: 'cd desktop && { [ "$RYPH_SETUP_PHASE" != image ] || { cargo build --manifest-path ./crates/test-http-api/Cargo.toml --locked && cargo build -p radicle-job --bin rad-job --locked; }; }'
# rustc's incremental cache only speeds up rebuilding this repo's own
# crates after an edit, and it is gigabytes. Image builds only.
- name: drop the incremental caches (image builds only)
run: '[ "$RYPH_SETUP_PHASE" != image ] || rm -rf explorer/target/debug/incremental desktop/target/debug/incremental'