ci: split CI jobs, add clippy/test, upgrade actions
- Split single check job into frontend / rust / jdbc parallel jobs - Add concurrency group to cancel redundant CI runs - Add pnpm cache via setup-node - Add cargo clippy and cargo test to CI - Unify Node version to 22 across all workflows - Upgrade pnpm/action-setup to v6 - Fix clippy never_loop errors (while let → if let)
This commit is contained in:
1 parent
b088858dcf
commit
658a14f290
7 files changed
+46
-18
No files matched your search
@@ -139,7 +139,7 @@ pub async fn import_agents_from_zip(
|
||||
let tmp_dir = state.data_dir.join("tmp");
|
||||
std::fs::create_dir_all(&tmp_dir).map_err(|err| AppError(err.to_string()))?;
|
||||
|
||||
while let Some(field) = multipart.next_field().await.map_err(|err| AppError(err.to_string()))? {
|
||||
if let Some(field) = multipart.next_field().await.map_err(|err| AppError(err.to_string()))? {
|
||||
let file_name = field.file_name().unwrap_or("offline-drivers.zip").to_string();
|
||||
if !file_name.to_ascii_lowercase().ends_with(".zip") {
|
||||
return Err(AppError("Offline driver package must be a .zip file".to_string()));
|
||||
|
||||
@@ -42,7 +42,7 @@ pub async fn preview_sql_file(
|
||||
let tmp_dir = state.data_dir.join("tmp");
|
||||
std::fs::create_dir_all(&tmp_dir).map_err(|e| AppError(e.to_string()))?;
|
||||
|
||||
while let Some(field) = multipart.next_field().await.map_err(|e| AppError(e.to_string()))? {
|
||||
if let Some(field) = multipart.next_field().await.map_err(|e| AppError(e.to_string()))? {
|
||||
let file_name = field.file_name().unwrap_or("upload.sql").to_string();
|
||||
let data = field.bytes().await.map_err(|e| AppError(e.to_string()))?;
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ pub async fn preview_import(
|
||||
let tmp_dir = state.data_dir.join("tmp");
|
||||
std::fs::create_dir_all(&tmp_dir).map_err(|e| AppError(e.to_string()))?;
|
||||
|
||||
while let Some(field) = multipart.next_field().await.map_err(|e| AppError(e.to_string()))? {
|
||||
if let Some(field) = multipart.next_field().await.map_err(|e| AppError(e.to_string()))? {
|
||||
let file_name = field.file_name().unwrap_or("upload.csv").to_string();
|
||||
let data = field.bytes().await.map_err(|e| AppError(e.to_string()))?;
|
||||
|
||||
|
||||
Reference in new issue
Block a user