Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

ci: run actions when specified files changed.

appflowy7d93ed8e8191
diff --git a/.github/workflows/dart_lint.yml b/.github/workflows/dart_lint.yml
index 44e0efdfdc..25c4990cac 100644
--- a/.github/workflows/dart_lint.yml
+++ b/.github/workflows/dart_lint.yml
@@ -8,9 +8,12 @@ name: Flutter lint
on:
push:
branches: [ main ]
+ paths:
+ - 'frontend/app_flowy'
pull_request:
branches: [ main ]
-
+ paths:
+ - 'frontend/app_flowy'
env:
CARGO_TERM_COLOR: always
@@ -25,10 +28,10 @@ jobs:
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- - name: Flutter pub get
+ - name: Deps Flutter
run: flutter pub get
working-directory: frontend/app_flowy
- - name: Generate language files
+ - name: Code Generate
working-directory: frontend/app_flowy
run:
flutter pub run easy_localization:generate --source-dir ./assets/translations -f keys -O lib/generated -o locale_keys.g.dart
diff --git a/.github/workflows/dart_test.yml b/.github/workflows/dart_test.yml
index 4bf456dc95..6106126cee 100644
--- a/.github/workflows/dart_test.yml
+++ b/.github/workflows/dart_test.yml
@@ -6,7 +6,6 @@ on:
pull_request:
branches: [ main ]
-
env:
CARGO_TERM_COLOR: always
@@ -41,7 +40,7 @@ jobs:
run: |
flutter config --enable-linux-desktop
cargo make --profile development-linux-x86 flowy-sdk-dev
- - name: Bloc Test
+ - name: Run bloc tests
working-directory: frontend/app_flowy
run: |
flutter test
diff --git a/.github/workflows/rust_test.yml b/.github/workflows/rust_test.yml
index ec7dd72f49..0321d5f9bc 100644
--- a/.github/workflows/rust_test.yml
+++ b/.github/workflows/rust_test.yml
@@ -3,14 +3,14 @@ name: Unit test(Rust)
on:
push:
branches: [ main ]
-# paths:
-# - 'frontend/rust-lib'
-# - 'shared-lib'
+ paths:
+ - 'frontend/rust-lib'
+ - 'shared-lib'
pull_request:
branches: [ main ]
-# paths:
-# - 'frontend/rust-lib'
-# - 'shared-lib'
+ paths:
+ - 'frontend/rust-lib'
+ - 'shared-lib'
env:
CARGO_TERM_COLOR: always
@@ -31,9 +31,9 @@ jobs:
- name: Install cargo-make
run: cargo install --force cargo-make
working-directory: frontend
- - name: RustLib tests
+ - name: Run rust-lib tests
run: cargo test --no-default-features
working-directory: frontend/rust-lib
- - name: Sharedlib tests
+ - name: Run shared-lib tests
run: cargo test --no-default-features
working-directory: shared-lib