Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Jul 2, 2023
1 parent f4111f2 commit 020db06
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 020db06

Please sign in to comment.