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