From 6657c1ec37006f8bc2849241755ebbde2cf6f6b5 Mon Sep 17 00:00:00 2001 From: cycraig Date: Mon, 11 Jul 2022 14:02:27 +0200 Subject: [PATCH] Add Rust documentation check to GitHub Actions (#937) * Add Rust documentation check to GitHub Actions * Break intra-doc link to test CI * Revert "Break intra-doc link to test CI" * Use docsrs build configuration * Correct step name --- .github/workflows/test-docs-build.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-docs-build.yml b/.github/workflows/test-docs-build.yml index 57f917f16c..17a969ab94 100644 --- a/.github/workflows/test-docs-build.yml +++ b/.github/workflows/test-docs-build.yml @@ -12,7 +12,7 @@ on: - epic/* - support/* -concurrency: +concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -21,8 +21,25 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Test Build + + - name: Test Wiki Build working-directory: documentation run: | yarn install --immutable yarn build + + - name: Install Rust nightly toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + + - name: Test Rust Documentation + uses: actions-rs/cargo@v1 + env: + RUSTDOCFLAGS: "-D warnings --cfg docsrs" + with: + command: doc + toolchain: nightly + args: --all-features --no-deps --workspace +