Add GitHub Actions workflow for running doc-tests and documentation generation

This commit is contained in:
Palash Tyagi 2025-04-21 01:51:03 +01:00
parent d7c90c65e9
commit 2642af5601
2 changed files with 26 additions and 4 deletions

View File

@ -0,0 +1,22 @@
name: run-docs-and-doc-tests
on:
pull_request:
branches:
- main
jobs:
run-docs-and-doc-tests:
name: run-docs-and-doc-tests
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Run doc-tests
run: cargo test --doc --all-features --workspace
- name: Test docs generation
run: cargo doc --no-deps

View File

@ -20,10 +20,10 @@ jobs:
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Run doc-tests
run: cargo test --doc --all-features --workspace
- name: Test docs generation
run: cargo doc --no-deps
# - name: Run doc-tests
# run: cargo test --doc --all-features --workspace
# - name: Test docs generation
# run: cargo doc --no-deps
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with: