From 020db065d8ac2314ae0f8003a37d235117929d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Sun, 2 Jul 2023 09:27:06 -0700 Subject: [PATCH] Test --- .github/workflows/test.yml | 12 ++++++++++-- Cargo.toml | 5 +++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dd20c6b..be28b62 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,13 +21,21 @@ env: jobs: build: - name: Build [${{ matrix.rust }}, ${{ matrix.profile }}] + name: Build [${{ matrix.rust }}, ${{ matrix.profile }}, ${{ matrix.args }}] runs-on: ubuntu-latest strategy: fail-fast: false matrix: rust: [stable] profile: [dev, release] + args: [--all-targets --all-features] + include: + - rust: stable + profile: release + args: + - rust: stable + profile: dev + args: --features=test steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 @@ -36,7 +44,7 @@ jobs: profile: minimal override: true - name: Build ${{ matrix.profile }} - run: cargo build --profile=${{ matrix.profile }} --all-targets --all-features + run: cargo build --profile=${{ matrix.profile }} ${{ matrix.args }} build-minimum: name: Build using minimum versions of dependencies runs-on: ubuntu-latest diff --git a/Cargo.toml b/Cargo.toml index 4b145a0..a8d2420 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,19 +15,20 @@ data. include = ["src/**/*", "LICENSE", "README.md", "CHANGELOG.md"] [features] -test = [] +test = ["tokio-tungstenite?/connect"] [dependencies] futures = {version = "0.3", default-features = false, features = ["async-await", "std"]} tokio = {version = "1.8", default-features = false, features = ["rt", "time"]} tracing = {version = "0.1", default-features = false, features = ["std"]} -tokio-tungstenite = {version = "0.19", default-features = false, features = ["connect"]} +tokio-tungstenite = {version = "0.19", default-features = false} [dev-dependencies] rand = {version = "0.8", default-features = false, features = ["std", "std_rng"]} serde = {version = "1.0", features = ["derive"]} test-log = {version = "0.2.8", default-features = false, features = ["trace"]} tokio = {version = "1.8", default-features = false, features = ["rt", "macros", "net", "test-util"]} +tokio-tungstenite = {version = "0.19", default-features = false, features = ["connect"]} tracing-subscriber = {version = "0.3", default-features = false, features = ["ansi", "env-filter", "fmt", "local-time"]} url = "2.0"