chore: remove closed issue documentation files #2303
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: Testing | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| format: | |
| name: Formatting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - id: checkout | |
| name: Checkout Repository | |
| uses: actions/checkout@v5 | |
| - id: setup | |
| name: Setup Toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: nightly | |
| components: rustfmt | |
| - id: format | |
| name: Run Formatting-Checks | |
| run: cargo fmt --check | |
| test: | |
| name: Test (${{ matrix.toolchain }}) | |
| runs-on: ubuntu-latest | |
| needs: format | |
| strategy: | |
| matrix: | |
| toolchain: [stable, nightly] | |
| steps: | |
| - id: checkout | |
| name: Checkout Repository | |
| uses: actions/checkout@v5 | |
| - id: setup | |
| name: Setup Toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| components: clippy | |
| - id: cache | |
| name: Enable Workflow Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - id: tools | |
| name: Install Tools | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-nextest,cargo-machete | |
| # ── Build (single compilation, reused by all subsequent steps) ── | |
| - id: fetch | |
| name: Download Dependencies | |
| run: cargo fetch --verbose | |
| - id: build | |
| name: Build All Targets | |
| run: cargo build --tests --benches --examples --workspace --all-targets --all-features --verbose | |
| # ── Static Analysis (reuses build artifacts) ── | |
| - id: docs-check | |
| name: Check Documentation Builds | |
| env: | |
| RUSTDOCFLAGS: "-D warnings" | |
| run: cargo doc --no-deps --bins --examples --workspace --all-features | |
| - id: deps | |
| name: Check Unused Dependencies | |
| run: cargo machete | |
| # ── Unit Tests (lib tests inside src/) ── | |
| - id: test-unit | |
| name: Run Unit Tests | |
| run: cargo nextest run --lib --workspace --all-features | |
| # ── Doc Tests ── | |
| - id: test-docs | |
| name: Run Documentation Tests | |
| run: cargo test --doc --workspace | |
| # ── Integration Tests (all test files in tests/ directory) ── | |
| - id: test-integration | |
| name: Run Integration Tests | |
| run: cargo nextest run --test '*' --all-features | |
| # ── Post-test Verification ── | |
| - id: verify-test-isolation | |
| name: Verify Test Isolation (data folder should be empty) | |
| run: | | |
| echo "Checking if data/ folder is polluted by tests..." | |
| if [ -d "data" ]; then | |
| FILE_COUNT=$(find data/ -mindepth 1 -type f | wc -l) | |
| DIR_COUNT=$(find data/ -mindepth 1 -type d | wc -l) | |
| echo "Files in data/: $FILE_COUNT" | |
| echo "Subdirectories in data/: $DIR_COUNT" | |
| if [ $FILE_COUNT -gt 0 ] || [ $DIR_COUNT -gt 0 ]; then | |
| echo "❌ ERROR: Tests polluted the production data/ folder!" | |
| echo "Contents of data/ folder:" | |
| ls -laR data/ | |
| echo "" | |
| echo "Tests must use temporary directories (TempWorkspace) with proper isolation." | |
| echo "See docs/contributing/testing/ for best practices." | |
| exit 1 | |
| else | |
| echo "✅ Test isolation verified: data/ folder is clean" | |
| fi | |
| else | |
| echo "✅ Test isolation verified: data/ folder does not exist" | |
| fi | |
| build: | |
| name: Build on ${{ matrix.os }} (${{ matrix.toolchain }}) | |
| runs-on: ${{ matrix.os }} | |
| needs: format | |
| strategy: | |
| matrix: | |
| os: [macos-latest, windows-latest] | |
| toolchain: [stable, nightly] | |
| steps: | |
| - id: checkout | |
| name: Checkout Repository | |
| uses: actions/checkout@v5 | |
| - id: setup | |
| name: Setup Toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| - id: cache | |
| name: Enable Workflow Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - id: fetch | |
| name: Download Dependencies | |
| run: cargo fetch --verbose | |
| - id: build | |
| name: Build Project | |
| run: cargo build --verbose --workspace --all-features |