Skip to content

Commit 4cbeb32

Browse files
committed
ci: split cov tests and docs tests
To save some time thanks to workflow parallelism Signed-off-by: Alexis Asseman <[email protected]>
1 parent 2c4456c commit 4cbeb32

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,26 @@ jobs:
6363
uses: taiki-e/install-action@cargo-llvm-cov
6464
- name: Run tests and generate coverage report
6565
run: cargo llvm-cov test --all-features --workspace --lcov --output-path lcov.info
66-
- name: Test documentation code snippets
67-
run: cargo test --doc --all-features --workspace
6866
- name: Upload coverage to Coveralls
6967
uses: coverallsapp/[email protected]
7068
with:
7169
file: ./lcov.info
70+
71+
test-docs:
72+
name: cargo test docs
73+
runs-on: ubuntu-latest
74+
container:
75+
image: rust:1.74-bookworm
76+
steps:
77+
- uses: actions/checkout@v3
78+
- uses: actions/cache@v3
79+
with:
80+
path: |
81+
~/.cargo/bin/
82+
~/.cargo/registry/index/
83+
~/.cargo/registry/cache/
84+
~/.cargo/git/db/
85+
target/
86+
key: ${{ runner.os }}-cargo-test-docs
87+
- name: Test documentation code snippets
88+
run: cargo test --doc --all-features --workspace

0 commit comments

Comments
 (0)