mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Desktop-only patches no longer run the explorer and Rust checks, and explorer patches no longer run the desktop e2e suite.
57 lines
1.2 KiB
YAML
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
|