From 667b8840008928bcea364db545c930bb739979d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Mon, 26 Apr 2021 03:09:35 +0200 Subject: [PATCH 1/2] fail doc check on rustdoc warnings --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80d5e55333e05..d1bcd4e3c4b3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,7 +129,7 @@ jobs: sleep 10 done - deadlinks: + check-doc: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -138,6 +138,8 @@ jobs: if: runner.os == 'linux' - name: Installs cargo-deadlinks run: cargo install cargo-deadlinks - - name: Checks dead doc links - run: cargo doc --all-features --no-deps && cargo deadlinks --dir target/doc/bevy + - name: Build and check doc + run: RUSTDOCFLAGS='-D warnings' cargo doc --all-features --no-deps + - name: Checks dead links + run: cargo deadlinks --dir target/doc/bevy continue-on-error: true From 4e5f6fd73d352dc6c6710b7048d515d09e7ab04a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Mon, 26 Apr 2021 03:09:50 +0200 Subject: [PATCH 2/2] check-doc job in bors --- .github/bors.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/bors.toml b/.github/bors.toml index 2ae95016b77d4..0e494d98c532f 100644 --- a/.github/bors.toml +++ b/.github/bors.toml @@ -8,6 +8,7 @@ status = [ "build-android", "markdownlint", "run-examples", + "check-doc", ] use_squash_merge = true