Skip to content

Commit

Permalink
skip docs check for test targets
Browse files Browse the repository at this point in the history
  • Loading branch information
zvolin committed Nov 29, 2024
1 parent 55fbfdb commit 299451b
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 14 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
target: wasm32-unknown-unknown

- name: Run clippy for native
run: cargo clippy --all --all-targets -- -D warnings -D missing-docs
run: cargo clippy --all --all-targets -- -D warnings

- name: Run clippy for wasm32
run: cargo clippy --all --all-targets --target=wasm32-unknown-unknown -- -D warnings -D missing-docs
run: cargo clippy --all --all-targets --target=wasm32-unknown-unknown -- -D warnings


docs:
Expand All @@ -33,11 +33,23 @@ jobs:
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly

- name: Install wasm Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown

- name: Run rustdoc check
env:
RUSTDOCFLAGS: --cfg docsrs -D warnings
run: cargo +nightly doc --no-deps

- name: Missing docs for native
run: cargo check --all -- -D missing-docs

- name: Missing docs for wasm32
run: cargo check --all --target=wasm32-unknown-unknown -- -D missing-docs


fmt:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion grpc/tests/tonic.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use celestia_grpc::types::auth::Account;
Expand Down
2 changes: 1 addition & 1 deletion node/src/store/indexed_db_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ impl IndexedDbStore {
}

trait TransactionOperationFn<'a, Arg>:
FnOnce(&'a Transaction, Arg) -> <Self as TransactionOperationFn<Arg>>::Fut
FnOnce(&'a Transaction, Arg) -> <Self as TransactionOperationFn<'a, Arg>>::Fut
{
type Fut: Future<Output = <Self as TransactionOperationFn<'a, Arg>>::Output>;
type Output;
Expand Down
1 change: 0 additions & 1 deletion node/tests/graceful_stop.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use std::path::Path;
Expand Down
1 change: 0 additions & 1 deletion node/tests/header_ex.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use std::time::Duration;
Expand Down
1 change: 0 additions & 1 deletion node/tests/node.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use std::time::Duration;
Expand Down
1 change: 0 additions & 1 deletion node/tests/shwap.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use std::{collections::HashSet, time::Duration};
Expand Down
1 change: 0 additions & 1 deletion rpc/tests/blob.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use std::cmp::Ordering;
Expand Down
1 change: 0 additions & 1 deletion rpc/tests/header.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use celestia_rpc::prelude::*;
Expand Down
1 change: 0 additions & 1 deletion rpc/tests/p2p.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![cfg(all(not(target_arch = "wasm32"), feature = "p2p"))]
use crate::utils::client::{new_test_client, AuthLevel};
use celestia_rpc::prelude::*;
Expand Down
1 change: 0 additions & 1 deletion rpc/tests/share.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use celestia_rpc::prelude::*;
Expand Down
1 change: 0 additions & 1 deletion rpc/tests/state.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![cfg(not(target_arch = "wasm32"))]

use crate::utils::{random_bytes, random_ns};
Expand Down
1 change: 0 additions & 1 deletion rpc/tests/wasm.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![cfg(all(target_arch = "wasm32", feature = "wasm-bindgen"))]

use celestia_rpc::client::Client;
Expand Down

0 comments on commit 299451b

Please sign in to comment.