ci: Fail doc generation on warnings

This commit is contained in:
Kévin Commaille 2022-04-10 11:14:49 +02:00
parent 0f0fe23138
commit a1a8a01bec
No known key found for this signature in database
GPG Key ID: DD507DAE96E8245C

View File

@ -29,11 +29,9 @@ jobs:
- name: Build docs
uses: actions-rs/cargo@v1
env:
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options --cfg docsrs"
with:
command: doc
args: --no-deps --workspace --exclude ruma-macros --exclude ruma-identifiers-validation --exclude xtask --all-features -Zrustdoc-map
command: run
args: -p xtask -- doc --deny-warnings
- name: Deploy to docs branch
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}