Skip to content

Commit

Permalink
ci: split cov tests and docs tests
Browse files Browse the repository at this point in the history
To save some time thanks to workflow parallelism

Signed-off-by: Alexis Asseman <[email protected]>
  • Loading branch information
aasseman committed Jun 27, 2024
1 parent 2c4456c commit 4cbeb32
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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

0 comments on commit 4cbeb32

Please sign in to comment.