Skip to content

Ensure all tests use the new LeakChecked utility #28

Ensure all tests use the new LeakChecked utility

Ensure all tests use the new LeakChecked utility #28

Workflow file for this run

name: Test
on:
push
env:
CARGO_TERM_COLOR: always
LIBCLANG_PATH: /usr/lib/llvm-14/lib/
jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
version: [community, enterprise]
steps:
- name: Install apt-get
run: sudo apt-get install -y clang llvm
- name: Install latest nightly
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt, clippy
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --features=${{ matrix.version }} --verbose
- name: Run tests with Couchbase Lite C leak check
run: LEAK_CHECK=y cargo test --features=${{ matrix.version }} --verbose -- --test-threads 1
- name: Run tests (with address sanitizer)
run: LSAN_OPTIONS=suppressions=san.supp RUSTFLAGS="-Zsanitizer=address" cargo +nightly test --features=${{ matrix.version }} --verbose