diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6f106e8fb..f70d3e04e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -13,6 +13,7 @@ jobs: - uses: actions/checkout@v3 - name: Install Rust run: rustup toolchain install nightly --component llvm-tools-preview + - uses: Swatinem/rust-cache@v2 - uses: taiki-e/install-action@cargo-llvm-cov - name: Generate code coverage run: cargo +nightly llvm-cov --all-features --workspace --lcov --output-path lcov.info diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 01af35195..ffe69e204 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,14 +30,23 @@ jobs: override: true components: rustfmt, clippy + - uses: taiki-e/install-action@nextest + - uses: Swatinem/rust-cache@v2 + - name: Build run: cargo build --verbose --workspace - name: Run tests - run: cargo +stable test --features mmap,brotli-compression,lz4-compression,snappy-compression,zstd-compression,failpoints --verbose --workspace + run: cargo +stable nextest run --features mmap,brotli-compression,lz4-compression,snappy-compression,zstd-compression,failpoints --verbose --workspace + + - name: Run doctests + run: cargo +stable test --doc --features mmap,brotli-compression,lz4-compression,snappy-compression,zstd-compression,failpoints --verbose --workspace - name: Run tests quickwit feature - run: cargo +stable test --features mmap,quickwit,failpoints --verbose --workspace + run: cargo +stable nextest run --features mmap,quickwit,failpoints --verbose --workspace + + - name: Run doctests quickwit feature + run: cargo +stable test --doc --features mmap,quickwit,failpoints --verbose --workspace - name: Check Formatting run: cargo +nightly fmt --all -- --check