mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-23 04:51:16 -03:00
Check rustdocs in CI
Setting `RUSTDOCFLAGS='-D warnings'` is needed to fail on warnings. For `cargo test --doc` no equivalent option seems to exist. See https://github.com/rust-lang/cargo/issues/14802.
This commit is contained in:
13
.github/workflows/rust_checks.yml
vendored
13
.github/workflows/rust_checks.yml
vendored
@@ -32,6 +32,19 @@ jobs:
|
||||
# into automatic CI failure day, so we don't do that.
|
||||
run: cargo clippy --workspace --all-targets
|
||||
|
||||
rustdoc:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: cargo doc
|
||||
run: |
|
||||
RUSTDOCFLAGS='-D warnings' cargo doc --workspace --all
|
||||
- name: cargo doctest
|
||||
run: |
|
||||
cargo test --doc --workspace --all
|
||||
|
||||
# Disabling for now because it also checks "advisories",
|
||||
# making CI fail for reasons unrelated to the patch
|
||||
# cargo-deny:
|
||||
|
||||
Reference in New Issue
Block a user