mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
fix: pass unit test
This commit is contained in:
parent
7cceafa432
commit
93863462a2
6 changed files with 5 additions and 20 deletions
4
.github/workflows/frontend_dart.yml
vendored
4
.github/workflows/frontend_dart.yml
vendored
|
@ -8,12 +8,8 @@ name: Frontend_Dart
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths:
|
|
||||||
- 'frontend/app_flowy'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths:
|
|
||||||
- 'frontend/app_flowy'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
6
.github/workflows/frontend_rust.yml
vendored
6
.github/workflows/frontend_rust.yml
vendored
|
@ -3,14 +3,8 @@ name: Frontend_Rust
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths:
|
|
||||||
- 'frontend/rust-lib'
|
|
||||||
- 'shared-lib'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths:
|
|
||||||
- 'frontend/rust-lib'
|
|
||||||
- 'shared-lib'
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
|
@ -158,7 +158,7 @@ script_runner = "@duckscript"
|
||||||
condition = { env_set = [ "FLUTTER_FLOWY_SDK_PATH"] }
|
condition = { env_set = [ "FLUTTER_FLOWY_SDK_PATH"] }
|
||||||
script = [
|
script = [
|
||||||
"""
|
"""
|
||||||
cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/flowy-folder
|
cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/../shared-lib/error-code
|
||||||
cargo build -vv
|
cargo build -vv
|
||||||
""",
|
""",
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
||||||
// Auto-generated, do not edit
|
|
||||||
|
|
||||||
mod error_code;
|
|
||||||
pub use error_code::*;
|
|
|
@ -27,7 +27,7 @@ syn = { version = "1.0.60", features = ["extra-traits", "parsing", "derive", "fu
|
||||||
fancy-regex = { version = "0.5.0", optional = true }
|
fancy-regex = { version = "0.5.0", optional = true }
|
||||||
lazy_static = { version = "1.4.0", optional = true }
|
lazy_static = { version = "1.4.0", optional = true }
|
||||||
tera = { version = "1.5.0", optional = true}
|
tera = { version = "1.5.0", optional = true}
|
||||||
itertools = {versino = "0.10", optional = true}
|
itertools = { version = "0.10", optional = true }
|
||||||
phf = { version = "0.8.0", features = ["macros"], optional = true }
|
phf = { version = "0.8.0", features = ["macros"], optional = true }
|
||||||
console = {version = "0.14.0", optional = true}
|
console = {version = "0.14.0", optional = true}
|
||||||
|
|
||||||
|
|
|
@ -8,13 +8,13 @@ use std::io::Read;
|
||||||
use tera::Tera;
|
use tera::Tera;
|
||||||
|
|
||||||
pub fn get_tera(directory: &str) -> Tera {
|
pub fn get_tera(directory: &str) -> Tera {
|
||||||
let mut root = format!("{}/../", file!());
|
let mut root = format!("{}/src/proto_gen/template/", env!("CARGO_MANIFEST_DIR"));
|
||||||
root.push_str(directory);
|
root.push_str(directory);
|
||||||
|
|
||||||
let root_absolute_path = match std::fs::canonicalize(root) {
|
let root_absolute_path = match std::fs::canonicalize(&root) {
|
||||||
Ok(p) => p.as_path().display().to_string(),
|
Ok(p) => p.as_path().display().to_string(),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
panic!("canonicalize {} failed {:?}", root, e);
|
panic!("❌ Canonicalize file path {} failed {:?}", root, e);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue