Skip to content

Commit

Permalink
Github Action: cloud feature is required in serverless
Browse files Browse the repository at this point in the history
  • Loading branch information
nemosupremo committed Jan 12, 2024
1 parent a598b32 commit 83ced31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Serverless
on:
push:
branches:
- main
- 'branch-*'
- main
- "branch-*"
pull_request:
branches:
- main
- 'branch-*'
- main
- "branch-*"

env:
CARGO_TERM_COLOR: always
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Run cloud example
run: cargo run --features cloud --example cloud -- $HOME/.ccm/serverless/config_data.yaml
- name: Run cloud tests
run: CLOUD_CONFIG_PATH=$HOME/.ccm/serverless/config_data.yaml RUSTFLAGS="--cfg scylla_cloud_tests" cargo test --verbose
run: CLOUD_CONFIG_PATH=$HOME/.ccm/serverless/config_data.yaml RUSTFLAGS="--cfg scylla_cloud_tests" cargo test --features cloud --verbose

- name: Remove serverless cluster
run: ccm remove serverless
run: ccm remove serverless
4 changes: 1 addition & 3 deletions scylla/src/transport/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,7 @@ mod ssl_config {
#[cfg(feature = "rustls")]
use std::{net::IpAddr, sync::Arc};
#[cfg(feature = "rustls")]
use tokio_rustls::rustls::pki_types::ServerName;
#[cfg(feature = "rustls")]
use tokio_rustls::rustls::ClientConfig;
use tokio_rustls::rustls::{pki_types::ServerName, ClientConfig};
#[cfg(feature = "cloud")]
use uuid::Uuid;

Expand Down

0 comments on commit 83ced31

Please sign in to comment.