mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Run explorer CI from explorer/
This commit is contained in:
@@ -1,22 +1,26 @@
|
||||
name: explorer-e2e
|
||||
# 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-e2e.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: explorer
|
||||
|
||||
jobs:
|
||||
e2e:
|
||||
timeout-minutes: 30
|
||||
@@ -25,7 +29,7 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
node-version-file: "explorer/.nvmrc"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
@@ -35,7 +39,7 @@ jobs:
|
||||
id: playwright-dep-cache
|
||||
with:
|
||||
path: ~/.cache/ms-playwright
|
||||
key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }}
|
||||
key: ${{ runner.os }}-playwright-${{ hashFiles('explorer/package-lock.json') }}
|
||||
|
||||
- name: Install Playwright browsers
|
||||
if: steps.playwright-dep-cache.outputs.cache-hit != 'true'
|
||||
@@ -57,4 +61,4 @@ jobs:
|
||||
retention-days: 30
|
||||
if-no-files-found: "ignore"
|
||||
path: |
|
||||
tests/artifacts/**/*
|
||||
explorer/tests/artifacts/**/*
|
||||
|
||||
Reference in New Issue
Block a user