Unnamed repository; edit this file 'description' to name the repository.
Merge pull request rust-analyzer/text-size#32 from CAD97/rustdocflags
Actually fail CI for doc warnings
Aleksey Kladov 2020-03-26
parent bf18e9f · parent 80fb6a5 · commit 16b144b
-rw-r--r--lib/text-size/.github/workflows/ci.yaml18
1 files changed, 7 insertions, 11 deletions
diff --git a/lib/text-size/.github/workflows/ci.yaml b/lib/text-size/.github/workflows/ci.yaml
index 1bd88df68e..4538ca8479 100644
--- a/lib/text-size/.github/workflows/ci.yaml
+++ b/lib/text-size/.github/workflows/ci.yaml
@@ -7,6 +7,11 @@ on:
- staging
- trying
+env:
+ RUSTFLAGS: -D warnings
+ RUSTUP_MAX_RETRIES: 10
+ CARGO_NET_RETRY: 10
+
jobs:
rust:
name: Rust
@@ -17,11 +22,6 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
- env:
- RUSTFLAGS: -D warnings
- RUSTUP_MAX_RETRIES: 10
- CARGO_NET_RETRY: 10
-
steps:
- name: Checkout repository
uses: actions/checkout@v2
@@ -39,11 +39,6 @@ jobs:
name: Docs
runs-on: ubuntu-latest
- env:
- RUSTFLAGS: -D warnings
- RUSTUP_MAX_RETRIES: 10
- CARGO_NET_RETRY: 10
-
steps:
- name: Checkout repository
uses: actions/checkout@v2
@@ -53,6 +48,7 @@ jobs:
with:
toolchain: nightly
profile: minimal
+ override: true
- name: Rustdoc
- run: cargo doc --all-features
+ run: cargo rustdoc --all-features -- -D warnings