ci: cargo test without default features

This commit is contained in:
appflowy 2022-02-09 21:39:12 +08:00
parent c407c38dc3
commit 68dfde4cf8
5 changed files with 7 additions and 6 deletions

View File

@ -25,10 +25,12 @@ jobs:
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- name: Flutter pub get
run: flutter pub get
working-directory: frontend/app_flowy
- name: Generate language files
working-directory: frontend/app_flowy
run:
flutter pub get
flutter pub run easy_localization:generate -S assets/translations/
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations -s en.json
- name: flutter analyze

View File

@ -37,8 +37,8 @@ jobs:
echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
working-directory: frontend
- name: RustLib tests
run: cargo test
run: cargo test --no-default-features
working-directory: frontend/rust-lib
- name: Sharedlib tests
run: cargo test
run: cargo test --no-default-features
working-directory: shared-lib

View File

@ -24,11 +24,12 @@ bytes = { version = "1.0" }
once_cell = "1"
lib-dispatch = {path = "../lib-dispatch" }
flowy-sdk = {path = "../flowy-sdk", features = ["dart"]}
flowy-sdk = {path = "../flowy-sdk"}
dart-notify = {path = "../dart-notify" }
flowy-derive = {path = "../../../shared-lib/flowy-derive" }
[features]
default = ["flowy-sdk/dart"]
flutter = ["dart-notify/dart"]
http_server = ["flowy-sdk/http_server", "flowy-sdk/use_bunyan"]
#use_serde = ["bincode"]

View File

@ -1,5 +1,4 @@
syntax = "proto3";
enum FolderNotification {
Unknown = 0;
UserCreateWorkspace = 10;

View File

@ -1,5 +1,4 @@
syntax = "proto3";
enum FolderEvent {
CreateWorkspace = 0;
ReadCurWorkspace = 1;