瀏覽代碼

ci: switch to flutter stable channel

appflowy 3 年之前
父節點
當前提交
ddc2926c9b
共有 4 個文件被更改,包括 6 次插入9 次删除
  1. 0 2
      .github/workflows/ci.yaml
  2. 1 2
      .github/workflows/dart_lint.yml
  3. 1 1
      .github/workflows/rust_lint.yml
  4. 4 4
      .github/workflows/rust_test.yml

+ 0 - 2
.github/workflows/ci.yaml

@@ -26,7 +26,6 @@ jobs:
           flutter channel stable
           flutter channel stable
           flutter config --enable-macos-desktop
           flutter config --enable-macos-desktop
           flutter doctor
           flutter doctor
-          dart pub global activate protoc_plugin
       - name: Deps
       - name: Deps
         working-directory: frontend
         working-directory: frontend
         run: |
         run: |
@@ -68,7 +67,6 @@ jobs:
           flutter channel stable
           flutter channel stable
           flutter config --enable-linux-desktop
           flutter config --enable-linux-desktop
           flutter doctor
           flutter doctor
-          dart pub global activate protoc_plugin
       - name: Deps
       - name: Deps
         working-directory: frontend
         working-directory: frontend
         run: |
         run: |

+ 1 - 2
.github/workflows/dart_lint.yml

@@ -24,12 +24,11 @@ jobs:
         uses: actions/checkout@v2
         uses: actions/checkout@v2
       - uses: subosito/flutter-action@v1
       - uses: subosito/flutter-action@v1
         with:
         with:
-          channel: "dev"
+          channel: "stable"
       - name: Generate language files
       - name: Generate language files
         working-directory: frontend/app_flowy
         working-directory: frontend/app_flowy
         run:
         run:
           flutter pub get
           flutter pub get
-          flutter pub add easy_localization
           flutter pub run easy_localization:generate -S assets/translations/
           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
           flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations -s en.json
       - name: flutter analyze
       - name: flutter analyze

+ 1 - 1
.github/workflows/rust_lint.yml

@@ -35,7 +35,7 @@ jobs:
           toolchain: stable
           toolchain: stable
           override: true
           override: true
       - name: Install protobuf tool
       - name: Install protobuf tool
-      - run:
+        run:
           cargo install --force cargo-make
           cargo install --force cargo-make
           cargo make flowy_dev
           cargo make flowy_dev
           echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
           echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH

+ 4 - 4
.github/workflows/rust_test.yml

@@ -1,4 +1,4 @@
-name: RustLint
+name: RustUnitTest
 
 
 on:
 on:
   push:
   push:
@@ -23,14 +23,14 @@ jobs:
           rustup toolchain install stable
           rustup toolchain install stable
           rustup default stable
           rustup default stable
       - name: Install protobuf tool
       - name: Install protobuf tool
-      - run:
+        run:
           cargo install --force cargo-make
           cargo install --force cargo-make
           cargo make flowy_dev
           cargo make flowy_dev
           echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
           echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
         working-directory: frontend
         working-directory: frontend
       - name: Frontend tests
       - name: Frontend tests
-        working-directory: frontend/rust-lib
         run: cargo test
         run: cargo test
+        working-directory: frontend/rust-lib
       - name: Shared-lib tests
       - name: Shared-lib tests
-        working-directory: shared-lib
         run: cargo test
         run: cargo test
+        working-directory: shared-lib