add shit
This commit is contained in:
parent
46fb165021
commit
f9cca163ff
5 changed files with 28 additions and 15 deletions
10
.woodpecker/audit.yaml
Normal file
10
.woodpecker/audit.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 'Format w/ Carg'
|
||||||
|
image: rust:1.88
|
||||||
|
commands:
|
||||||
|
- cargo install cargo-audit
|
||||||
|
- cargo audit
|
9
.woodpecker/check.yaml
Normal file
9
.woodpecker/check.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 'Format w/ Carg'
|
||||||
|
image: rust:1.88
|
||||||
|
commands:
|
||||||
|
- cargo check
|
|
@ -1,14 +1,14 @@
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
- event: pull_request
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 'Check w/ Prettier'
|
- name: 'Format w/ Cargo'
|
||||||
image: woodpeckerci/plugin-prettier:next
|
|
||||||
settings:
|
|
||||||
single_issue_check: true
|
|
||||||
- name: 'Check w/ Cargo'
|
|
||||||
image: rust:1.88
|
image: rust:1.88
|
||||||
commands:
|
commands:
|
||||||
- cargo check
|
- cargo fmt
|
||||||
|
- name: 'Push formatted'
|
||||||
|
image: appleboy/drone-git-push
|
||||||
|
settings:
|
||||||
|
remote_name: origin
|
||||||
|
branch: ${CI_COMMIT_BRANCH}
|
||||||
|
|
|
@ -14,10 +14,7 @@ use db::BoxyDatabase;
|
||||||
use log::{debug, error, info};
|
use log::{debug, error, info};
|
||||||
use matchers::api::ApiMatcher;
|
use matchers::api::ApiMatcher;
|
||||||
use server::Server;
|
use server::Server;
|
||||||
use services::{
|
use services::{controller::ControllerService, matcher::Matcher};
|
||||||
controller::ControllerService,
|
|
||||||
matcher::Matcher,
|
|
||||||
};
|
|
||||||
use tokio::{
|
use tokio::{
|
||||||
sync::Mutex,
|
sync::Mutex,
|
||||||
time::{self},
|
time::{self},
|
||||||
|
|
|
@ -3,10 +3,7 @@ use std::{net::IpAddr, sync::Arc};
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use base64::{Engine, prelude::BASE64_STANDARD};
|
use base64::{Engine, prelude::BASE64_STANDARD};
|
||||||
use http_body_util::BodyExt;
|
use http_body_util::BodyExt;
|
||||||
use hyper::{
|
use hyper::{Request, StatusCode, body::Incoming};
|
||||||
Request, StatusCode,
|
|
||||||
body::Incoming,
|
|
||||||
};
|
|
||||||
use json::JsonValue;
|
use json::JsonValue;
|
||||||
use log::{debug, error, warn};
|
use log::{debug, error, warn};
|
||||||
use tokio::{net::TcpStream, sync::Mutex};
|
use tokio::{net::TcpStream, sync::Mutex};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue