Suppress deprecated warnings in helper functions for purge tests #168
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: 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@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1 # v1 | |
| with: | |
| toolchain: nightly | |
| components: rustfmt, clippy | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - 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 --target x86_64-unknown-linux-gnu --features=${{ matrix.version }} --verbose |