mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
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.
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
name: explorer-e2e
|
||||
# Only explorer changes, or changes to this workflow, run it. Rust-only
|
||||
# changes don't affect the web app: its tests run against a pinned, pre-built
|
||||
# radicle-httpd.
|
||||
# Only explorer, shared/ui and root npm changes, or changes to this workflow,
|
||||
# run it. Rust-only changes don't affect the web app: its tests run against a
|
||||
# pinned, pre-built radicle-httpd.
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "explorer/**"
|
||||
- "shared/**"
|
||||
- "package.json"
|
||||
- "package-lock.json"
|
||||
- ".npmrc"
|
||||
- ".nvmrc"
|
||||
- "!explorer/crates/**"
|
||||
- "!explorer/Cargo.toml"
|
||||
- "!explorer/Cargo.lock"
|
||||
@@ -29,7 +34,7 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: "explorer/.nvmrc"
|
||||
node-version-file: ".nvmrc"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
@@ -39,7 +44,7 @@ jobs:
|
||||
id: playwright-dep-cache
|
||||
with:
|
||||
path: ~/.cache/ms-playwright
|
||||
key: ${{ runner.os }}-playwright-${{ hashFiles('explorer/package-lock.json') }}
|
||||
key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- name: Install Playwright browsers
|
||||
if: steps.playwright-dep-cache.outputs.cache-hit != 'true'
|
||||
|
||||
Reference in New Issue
Block a user