Unverified Commit a8796c61 authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by GitHub
Browse files

ci: run check on each feature individually (#552)

* ci: test each feature individually

* fix nit: --all-targets is an arg

* fix rustdoc link

* get rid of cargo hack test; too slow
parent ff3337b1
......@@ -41,6 +41,7 @@ jobs:
uses: actions-rs/cargo@v1.0.3
with:
command: clippy
args: --all-targets
- name: Check rustdoc links
run: RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items
......@@ -59,68 +60,14 @@ jobs:
toolchain: stable
override: true
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0
- name: Cargo check all targets (use Cargo.toml in workspace)
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --all-targets
- name: Cargo check HTTP client
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --manifest-path http-client/Cargo.toml
- name: Cargo check HTTP server
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --manifest-path http-server/Cargo.toml
- name: Cargo check WS client
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --manifest-path ws-client/Cargo.toml
- name: Cargo check WS server
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --manifest-path ws-server/Cargo.toml
- name: Cargo check types
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --manifest-path types/Cargo.toml
- name: Cargo check utils
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --manifest-path utils/Cargo.toml
- name: Cargo check proc macros
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --manifest-path proc-macros/Cargo.toml
- name: Cargo check test utils
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --manifest-path test-utils/Cargo.toml
- name: Cargo check examples
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --manifest-path examples/Cargo.toml
- name: Cargo check all targets and features
run: cargo hack check --workspace --each-feature --all-targets
tests:
name: Run tests Ubuntu
......@@ -139,16 +86,11 @@ jobs:
- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0
- name: Cargo build
uses: actions-rs/cargo@v1.0.3
with:
command: build
args: --workspace
- name: Cargo test
uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --workspace
tests_macos:
name: Run tests macos
......@@ -167,16 +109,11 @@ jobs:
- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0
- name: Cargo build
uses: actions-rs/cargo@v1.0.3
with:
command: build
args: --workspace
- name: Cargo test
uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --workspace
tests_windows:
name: Run tests Windows
......@@ -195,13 +132,8 @@ jobs:
- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0
- name: Cargo build
uses: actions-rs/cargo@v1.0.3
with:
command: build
args: --workspace
- name: Cargo test
uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --workspace
......@@ -15,7 +15,7 @@ fnv = "1"
hyper = { version = "0.14.10", features = ["client", "http1", "http2", "tcp"] }
hyper-rustls = { version = "0.22", features = ["webpki-tokio"] }
jsonrpsee-types = { path = "../types", version = "0.4.1" }
jsonrpsee-utils = { path = "../utils", version = "0.4.1", features = ["http-helpers"] }
jsonrpsee-utils = { path = "../utils", version = "0.4.1", features = ["client", "http-helpers"] }
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
......
......@@ -43,4 +43,4 @@ client = ["jsonrpsee-types"]
[dev-dependencies]
serde_json = "1.0"
tokio = { version = "1", features = ["macros", "rt"] }
jsonrpsee = { path = "../jsonrpsee" }
jsonrpsee = { path = "../jsonrpsee", features = ["server", "macros"] }
......@@ -32,7 +32,7 @@ pub mod __reexports {
}
#[macro_export]
/// Convert the given values to a [`ParamsSer`] as expected by a jsonrpsee Client (http or websocket).
/// Convert the given values to a [`jsonrpsee_types::v2::ParamsSer`] as expected by a jsonrpsee Client (http or websocket).
macro_rules! rpc_params {
($($param:expr),*) => {
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment