mirror of
https://old.git.ood.ovh/nehu/tokio-messaging.git
synced 2025-04-28 22:27:04 +02:00
Allow running unit tests and doc-tests in parallel
This commit is contained in:
parent
99a94702d0
commit
5f01f76048
1 changed files with 16 additions and 1 deletions
17
.github/workflows/rust.yml
vendored
17
.github/workflows/rust.yml
vendored
|
@ -44,7 +44,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build
|
run: cargo build
|
||||||
test:
|
unit-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
|
@ -75,5 +75,20 @@ jobs:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: target/nextest/ci/junit.xml
|
path: target/nextest/ci/junit.xml
|
||||||
reporter: java-junit
|
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
|
- name: Run documentation tests
|
||||||
run: cargo test --doc
|
run: cargo test --doc
|
||||||
|
|
Loading…
Add table
Reference in a new issue