Run explorer CI from explorer/

This commit is contained in:
Rūdolfs Ošiņš
2026-10-22 11:06:34 +02:00
parent 6c0ddd64dc
commit e80e257ee4
11 changed files with 145 additions and 103 deletions
+18 -14
View File
@@ -1,22 +1,26 @@
name: explorer-visual
# Desktop and Rust-only changes don't affect the web app: its tests run
# against a pinned, pre-built radicle-httpd.
# 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.
on:
push:
paths-ignore:
- "desktop/**"
- "crates/**"
- "Cargo.toml"
- "Cargo.lock"
- "rust-toolchain"
- ".cargo/**"
- ".github/workflows/desktop-*.yml"
- ".github/workflows/explorer-rust.yml"
paths:
- "explorer/**"
- "!explorer/crates/**"
- "!explorer/Cargo.toml"
- "!explorer/Cargo.lock"
- "!explorer/rust-toolchain"
- "!explorer/.cargo/**"
- ".github/workflows/explorer-visual.yml"
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
defaults:
run:
working-directory: explorer
jobs:
generate-visual-diffs:
concurrency:
@@ -41,7 +45,7 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
node-version-file: "explorer/.nvmrc"
- name: Install dependencies
run: npm ci
@@ -61,7 +65,7 @@ jobs:
uses: actions/cache@v5
id: playwright-snapshot-cache
with:
path: tests/visual/snapshots/**/*
path: explorer/tests/visual/snapshots/**/*
key: ${{ runner.os }}-snapshots
- name: Install Playwright browsers
@@ -101,7 +105,7 @@ jobs:
retention-days: 30
if-no-files-found: "ignore"
path: |
tests/artifacts/**/*
explorer/tests/artifacts/**/*
- name: Check for artifacts
id: check_artifacts