mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 19:30:38 +08:00
Run explorer CI from explorer/
This commit is contained in:
@@ -1,22 +1,26 @@
|
||||
name: explorer-build
|
||||
# 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-build.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: explorer
|
||||
|
||||
jobs:
|
||||
build:
|
||||
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
|
||||
- name: Install Playwright Browsers
|
||||
@@ -42,4 +46,4 @@ jobs:
|
||||
retention-days: 30
|
||||
if-no-files-found: "ignore"
|
||||
path: |
|
||||
tests/artifacts/**/*
|
||||
explorer/tests/artifacts/**/*
|
||||
|
||||
@@ -1,22 +1,26 @@
|
||||
name: explorer-check
|
||||
# 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-check.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: explorer
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -25,6 +29,6 @@ jobs:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
node-version-file: "explorer/.nvmrc"
|
||||
- run: npm ci
|
||||
- run: npm run check
|
||||
|
||||
@@ -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/**/*
|
||||
|
||||
@@ -1,22 +1,26 @@
|
||||
name: explorer-http-client-unit-test
|
||||
# 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-http-client-unit-test.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: explorer
|
||||
|
||||
jobs:
|
||||
http-client-unit-test:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -26,7 +30,7 @@ jobs:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
node-version-file: "explorer/.nvmrc"
|
||||
- run: npm ci
|
||||
- name: Install Radicle binaries
|
||||
run: |
|
||||
|
||||
@@ -3,11 +3,11 @@ name: explorer-rust
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "crates/**"
|
||||
- "Cargo.toml"
|
||||
- "Cargo.lock"
|
||||
- "rust-toolchain"
|
||||
- ".cargo/**"
|
||||
- "explorer/crates/**"
|
||||
- "explorer/Cargo.toml"
|
||||
- "explorer/Cargo.lock"
|
||||
- "explorer/rust-toolchain"
|
||||
- "explorer/.cargo/**"
|
||||
- ".github/workflows/explorer-rust.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -17,6 +17,10 @@ env:
|
||||
# panics and backtraces, and make builds and caches much smaller.
|
||||
CARGO_PROFILE_DEV_DEBUG: line-tables-only
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: explorer
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Build & Test
|
||||
@@ -26,7 +30,7 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@1.97.1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: ". -> target"
|
||||
workspaces: "explorer -> target"
|
||||
# Only master saves, so patches share its caches instead of each
|
||||
# storing their own, which pushes the repo over GitHub's 10 GB limit.
|
||||
save-if: ${{ github.ref == 'refs/heads/master' }}
|
||||
@@ -49,7 +53,7 @@ jobs:
|
||||
components: rustfmt, clippy
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: ". -> target"
|
||||
workspaces: "explorer -> target"
|
||||
# Only master saves, so patches share its caches instead of each
|
||||
# storing their own, which pushes the repo over GitHub's 10 GB limit.
|
||||
save-if: ${{ github.ref == 'refs/heads/master' }}
|
||||
|
||||
@@ -1,22 +1,26 @@
|
||||
name: explorer-unit-test
|
||||
# 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-unit-test.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: explorer
|
||||
|
||||
jobs:
|
||||
unit-test:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -26,6 +30,6 @@ jobs:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
node-version-file: "explorer/.nvmrc"
|
||||
- run: npm ci
|
||||
- run: npm run test:unit
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user