From 4cbeb321ff929015e30131092b3cb98e1c923ec7 Mon Sep 17 00:00:00 2001 From: Alexis Asseman Date: Wed, 26 Jun 2024 18:59:58 -0700 Subject: [PATCH] ci: split cov tests and docs tests To save some time thanks to workflow parallelism Signed-off-by: Alexis Asseman --- .github/workflows/tests.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2406088c..45997738 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,9 +63,26 @@ jobs: uses: taiki-e/install-action@cargo-llvm-cov - name: Run tests and generate coverage report run: cargo llvm-cov test --all-features --workspace --lcov --output-path lcov.info - - name: Test documentation code snippets - run: cargo test --doc --all-features --workspace - name: Upload coverage to Coveralls uses: coverallsapp/github-action@v2.2.0 with: file: ./lcov.info + + test-docs: + name: cargo test docs + runs-on: ubuntu-latest + container: + image: rust:1.74-bookworm + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-test-docs + - name: Test documentation code snippets + run: cargo test --doc --all-features --workspace