mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-02-20 07:37:26 -05:00
- Updated the CI workflow to run all tests for the `sd-core` package, ensuring comprehensive coverage. - Modified test execution commands to include specific tests for better granularity and clarity. - Improved device management by regenerating slugs upon name changes and updating global device slugs. - Enhanced session key generation for improved security during device pairing. - Updated progress monitoring tests to ensure robust performance tracking for large file operations.
61 lines
2.2 KiB
YAML
61 lines
2.2 KiB
YAML
name: Core Tests
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: self-hosted
|
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Rust toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: "1.81"
|
|
|
|
- name: Cache cargo registry
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.cargo/registry
|
|
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
- name: Cache cargo index
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.cargo/git
|
|
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
- name: Cache cargo build
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: target
|
|
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
- name: Build core
|
|
run: cargo build -p sd-core --verbose
|
|
|
|
- name: Run all tests
|
|
run: |
|
|
cargo test -p sd-core --lib -- --test-threads=1 --nocapture
|
|
cargo test -p sd-core --test indexing_test -- --test-threads=1 --nocapture
|
|
cargo test -p sd-core --test indexing_rules_test -- --test-threads=1 --nocapture
|
|
cargo test -p sd-core --test indexing_responder_reindex_test -- --test-threads=1 --nocapture
|
|
cargo test -p sd-core --test sync_backfill_test -- --test-threads=1 --nocapture
|
|
cargo test -p sd-core --test sync_backfill_race_test -- --test-threads=1 --nocapture
|
|
cargo test -p sd-core --test sync_event_log_test -- --test-threads=1 --nocapture
|
|
cargo test -p sd-core --test sync_metrics_test -- --test-threads=1 --nocapture
|
|
cargo test -p sd-core --test sync_realtime_test -- --test-threads=1 --nocapture
|
|
cargo test -p sd-core --test sync_setup_test -- --test-threads=1 --nocapture
|
|
cargo test -p sd-core --test file_sync_simple_test -- --test-threads=1 --nocapture
|
|
cargo test -p sd-core --test file_sync_test -- --test-threads=1 --nocapture
|
|
cargo test -p sd-core --test database_migration_test -- --test-threads=1 --nocapture
|