Pārlūkot izejas kodu

ci: run actions when specified files changed.

appflowy 3 gadi atpakaļ
vecāks
revīzija
7d93ed8e81

+ 6 - 3
.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

+ 1 - 2
.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

+ 8 - 8
.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