Skip to content

feat(neotree): virtualize unbounded file trees #734

feat(neotree): virtualize unbounded file trees

feat(neotree): virtualize unbounded file trees #734

Workflow file for this run

name: Husk Plugin Check
on:
push:
branches: [main, develop]
paths:
- '.github/workflows/plugin-check.yml'
- 'Cargo.lock'
- 'Cargo.toml'
- 'crates/husk*/**'
- 'default_config.toml'
- 'examples/**'
- 'plugins/**'
- 'src/assets.rs'
- 'src/config.rs'
- 'src/plugin/**'
- 'src/self_check.rs'
pull_request:
paths:
- '.github/workflows/plugin-check.yml'
- 'Cargo.lock'
- 'Cargo.toml'
- 'crates/husk*/**'
- 'default_config.toml'
- 'examples/**'
- 'plugins/**'
- 'src/assets.rs'
- 'src/config.rs'
- 'src/plugin/**'
- 'src/self_check.rs'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
CARGO_PROFILE_DEV_DEBUG: line-tables-only
CARGO_PROFILE_TEST_DEBUG: line-tables-only
RUST_BACKTRACE: 1
jobs:
bundled-plugins:
name: Parse and initialize bundled Husk plugins
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
shared-key: validation-${{ runner.os }}
- name: Test the Husk runtime and plugin bridge
run: |
cargo test --all-features -p red --lib --bin red -- \
husk \
plugin::runtime::tests::lsp_symbols_ \
plugin::runtime::tests::git_ \
plugin::runtime::tests::embedded_git_core_ \
plugin::runtime::tests::neotree_ \
plugin::runtime::tests::embedded_neotree_core_
cargo test --workspace --exclude red --all-features --tests
cargo run --all-features -p husk-cli -- test --locked plugins/git_core
cargo run --all-features -p husk-cli -- test --locked plugins/neotree_core
- name: Validate example plugin metadata
run: python3 -m json.tool examples/example-plugin/package.json > /dev/null
- name: Initialize the bundled runtime
run: cargo run --all-features -- --self-check