From 77e82ee1b43e148ef3aba492ed3631b63fd9e74f Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Mon, 24 Apr 2023 13:42:48 +0100 Subject: [PATCH] ci: ensure intra links for all members are checked --- .github/workflows/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 303082018d5..ce5a0716488 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -187,14 +187,15 @@ jobs: # This requires rustfmt, use stable. - name: Run semver-check run: cargo +stable run -p semver-check - - run: | + - name: Ensure intradoc links are valid + run: cargo doc --workspace --document-private-items --no-deps + env: + RUSTDOCFLAGS: -D warnings + - name: Install mdbook + run: | mkdir mdbook curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.27/mdbook-v0.4.27-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook echo `pwd`/mdbook >> $GITHUB_PATH - # TODO: should check all workspace members - - run: cargo doc -p cargo --document-private-items --no-deps - env: - RUSTDOCFLAGS: -D warnings - run: cd src/doc && mdbook build --dest-dir ../../target/doc - name: Run linkchecker.sh run: |