Cache dependencies in CI to speed up build times. (#1469)

* Cache dependencies in CI to speed up build times.

* Give cargo-nextest a try.
This commit is contained in:
Adam Reichold
2022-08-23 23:27:29 +02:00
committed by GitHub
parent 8b3a6f6231
commit 2ae383e452
2 changed files with 12 additions and 2 deletions

View File

@@ -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

View File

@@ -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