Files
radicle-explorer/.github/workflows/desktop-lint.yml
T
Rūdolfs Ošiņš 520e20c835 Run CI only for the components a push changes
Desktop-only patches no longer run the explorer and Rust checks, and
explorer patches no longer run the desktop e2e suite.
2026-10-13 17:23:20 +02:00

57 lines
1.2 KiB
YAML

name: desktop-lint
# Only desktop changes, or changes to this workflow, run it.
on:
pull_request:
paths:
- "desktop/**"
- ".github/workflows/desktop-lint.yml"
push:
paths:
- "desktop/**"
- ".github/workflows/desktop-lint.yml"
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
defaults:
run:
working-directory: desktop
jobs:
lint-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: "desktop/.nvmrc"
- run: npm ci
- run: npm run check-js
lint-rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: |
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
libxdo-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
libwebkit2gtk-4.1-dev \
libjavascriptcoregtk-4.1-dev
# The version in desktop/rust-toolchain.toml, which cargo uses here.
- uses: dtolnay/rust-toolchain@1.97.1
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: desktop
- run: scripts/check-rs