Skip to content

Merge branch 'copilot/fix-rebuild-index-tests' #19

Merge branch 'copilot/fix-rebuild-index-tests'

Merge branch 'copilot/fix-rebuild-index-tests' #19

Workflow file for this run

name: Rust
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
jobs:
build:
name: Build & Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run test with custom_separator
run: cargo test --features custom_separator -- custom_separator_test
- name: Run integration test with in-memory database
run: cargo test --features memory --no-default-features