Allow running unit tests and doc-tests in parallel

This commit is contained in:
Nehu 2022-11-11 12:41:52 +01:00
parent 99a94702d0
commit 5f01f76048
No known key found for this signature in database
GPG key ID: 78EB319889EB5FBF

View file

@ -44,7 +44,7 @@ jobs:
- uses: actions/checkout@v3
- name: Build
run: cargo build
test:
unit-tests:
runs-on: ubuntu-latest
needs: build
steps:
@ -75,5 +75,20 @@ jobs:
name: test-results
path: target/nextest/ci/junit.xml
reporter: java-junit
doc-tests:
runs-on: ubuntu-latest
needs: build
steps:
- name: Cache
uses: actions/cache@v3.0.11
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/cargo-target/
key: "rust-build"
- uses: actions/checkout@v3
- name: Run documentation tests
run: cargo test --doc