Build(deps-dev): Bump @types/node from 24.10.2 to 25.0.0 (#2446) #59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - 'electron-app/magnifier/rust-sampler/**' | |
| - '.github/workflows/rust-tests.yml' | |
| jobs: | |
| test: | |
| name: Test Rust Sampler | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Install Linux dependencies | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libx11-dev libpipewire-0.3-dev pkg-config | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| # Run tests with platform-specific features | |
| - name: Run Rust tests (Linux) | |
| if: runner.os == 'Linux' | |
| run: cd electron-app/magnifier/rust-sampler && cargo test --features x11,wayland | |
| - name: Run Rust tests (macOS/Windows) | |
| if: runner.os != 'Linux' | |
| run: cd electron-app/magnifier/rust-sampler && cargo test |