From 5f01f76048fcd11c5d35465f8d2920c147a89c0b Mon Sep 17 00:00:00 2001 From: etienne-k <2804556+etienne-k@users.noreply.github.com> Date: Fri, 11 Nov 2022 12:41:52 +0100 Subject: [PATCH] Allow running unit tests and doc-tests in parallel --- .github/workflows/rust.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 52ce92d..49718a9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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