Bläddra i källkod

chore: fix github actions

appflowy 2 år sedan
förälder
incheckning
68f7f25ca8
2 ändrade filer med 18 tillägg och 15 borttagningar
  1. 4 0
      .github/workflows/dart_lint.yml
  2. 14 15
      .github/workflows/rust_lint.yml

+ 4 - 0
.github/workflows/dart_lint.yml

@@ -25,6 +25,10 @@ jobs:
         with:
           flutter-version: '3.0.0'
           channel: "stable"
+      - name: Build FlowySDK
+        working-directory: frontend
+        run: |
+          cargo make --profile development-linux-x86 flowy-sdk-dev
       - name: Deps Flutter
         run: flutter packages pub get
         working-directory: frontend/app_flowy

+ 14 - 15
.github/workflows/rust_lint.yml

@@ -17,25 +17,24 @@ jobs:
     steps:
       - uses: actions/checkout@v2
       - uses: actions-rs/toolchain@v1
-        with:
-          toolchain: 'stable-2022-01-20'
-          override: true
+      with:
+        toolchain: 'stable-2022-01-20'
+        override: true
+      - name: Build FlowySDK
+        working-directory: frontend
+        run: |
+          cargo make --profile development-linux-x86 flowy-sdk-dev
+
       - run: rustup component add rustfmt
         working-directory: frontend/rust-lib
-      - run: cargo fmt --all -- --check
+      - name: rustfmt
+        run: cargo fmt --all -- --check
         working-directory: frontend/rust-lib/
 
 
-  rust-clippy:
-    runs-on: ubuntu-latest
-    name: Clippy
-    steps:
-      - uses: actions/checkout@v2
-      - uses: actions-rs/toolchain@v1
-        with:
-          toolchain: 'stable-2022-01-20'
-          override: true
       - run: rustup component add clippy
+          working-directory: frontend/rust-lib
+      - name: clippy
+        run: cargo clippy --no-default-features
         working-directory: frontend/rust-lib
-      - run: cargo clippy --no-default-features
-        working-directory: frontend/rust-lib
+