Unnamed repository; edit this file 'description' to name the repository.
Merge pull request rust-analyzer/text-size#27 from CAD97/ci-docs
Ensure docs build
Aleksey Kladov 2020-03-24
parent 128f45f · parent e497041 · commit 8c3d31f
-rw-r--r--lib/text-size/.github/workflows/ci.yaml24
1 files changed, 23 insertions, 1 deletions
diff --git a/lib/text-size/.github/workflows/ci.yaml b/lib/text-size/.github/workflows/ci.yaml
index aa0587bd98..1bd88df68e 100644
--- a/lib/text-size/.github/workflows/ci.yaml
+++ b/lib/text-size/.github/workflows/ci.yaml
@@ -33,4 +33,26 @@ jobs:
profile: minimal
- name: Test
- run: cargo test --features serde
+ run: cargo test --all-features
+
+ rustdoc:
+ 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
+
+ - name: Install Rust toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: nightly
+ profile: minimal
+
+ - name: Rustdoc
+ run: cargo doc --all-features