This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run fifsky/ssh-action@master | |
with: | |
host: 65.123.123.133 | |
user: sammy | |
key: *** | |
port: 22 | |
command: cd ~ | |
export SECRET=*** REDISRS_SERVER_TYPE=unix | |
docker-compose down | |
docker-compose pull |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[actix_web::test] | |
async fn units() -> anyhow::Result<()> { | |
std::env::set_var("RUST_LOG", "info"); | |
std::env::set_var("RUST_BACKTRACE", "1"); | |
dotenv::dotenv().ok(); | |
let ctx = TestContext::new(); | |
let meter = general::M1; | |
let gadget = fixtures::gadget(&ctx.client, meter, Uuid::new_v4()).await?; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub async fn message<T>( | |
redis: &redis::Client, | |
sms: T, | |
gadget: Option<Uuid>, | |
uuid: Uuid, | |
) -> Result<Message, CustomError> | |
where | |
T: AsRef<str> + ToString, | |
{ | |
if !helper::index_exists(redis, common::index::MESSAGES).await { |
OlderNewer