Files
radicle-explorer/.github/workflows/desktop-lint.yml
T
Rūdolfs Ošiņš 33182fd942 Run desktop CI from the repo root
GitHub only reads workflows from the root `.github/` and ryph only reads
the root `.ryph/`. The desktop workflows now run in `desktop/`, and the
ryph setup installs and warms both projects.
2026-10-13 16:53:36 +02:00

50 lines
1.0 KiB
YAML

name: desktop-lint
on:
pull_request:
push:
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