Skip to content

Commit

Permalink
Add a test that call cargo doc for many crates in the ecosystem
Browse files Browse the repository at this point in the history
I expect this to fail for now since we have a bug
  • Loading branch information
ogoffart committed Jul 12, 2024
1 parent 3c79608 commit 620edb7
Showing 1 changed file with 42 additions and 13 deletions.
55 changes: 42 additions & 13 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,55 @@ jobs:
- nightly

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Run tests
run: cargo test --verbose --all-features
- name: Run docs
run: cargo doc --verbose
run: cargo doc --verbose
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run rustfmt
run: cargo fmt --all -- --check


crater:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: setup patch
run: |
echo "" >> ~/.cargo/config.toml
echo [patch.crates-io] >> ~/.cargo/config.toml
echo document-features = { path = \"$GITHUB_WORKSPACE\" } >> ~/.cargo/config.toml
- name: create project and generate docs
run: |
cd ~
cargo new crater
cd crater
cargo add quick-xml -F document-features
cargo add serde_width -F document-features
cargo add serial_test -F document-features
cargo add wpu-core
cargo add wpu
cargo add gix -F document-features
cargo add kstring -F document-features
cargo add ratatui -F document-features
cargo add re_types
cargo add slint -F document-features
cargo add egui-winit -F document-features
cargo add ehttp
cargo add snapbox -F document-features
cargo add fast-image-resize
cargo add rhai -F document-features
cargo add embassy-executor
cargo add embassy-time
cargo doc
not grep -r "No documented features in Cargo.toml" target/doc

0 comments on commit 620edb7

Please sign in to comment.