diff --git a/.github/workflows/dart_lint.yml b/.github/workflows/dart_lint.yml index 59a5a69c93..e149330537 100644 --- a/.github/workflows/dart_lint.yml +++ b/.github/workflows/dart_lint.yml @@ -25,6 +25,9 @@ jobs: with: flutter-version: '3.0.0' channel: "stable" + - uses: actions-rs/toolchain@v1 + with: + toolchain: 'stable-2022-01-20' - name: Rust Deps working-directory: frontend @@ -32,18 +35,21 @@ jobs: cargo install cargo-make cargo make flowy_dev - - name: Build FlowySDK - working-directory: frontend - run: | - cargo make --profile development-linux-x86 flowy-sdk-dev - - name: Deps Flutter + - name: Flutter Deps run: flutter packages pub get working-directory: frontend/app_flowy + - name: Code Generation working-directory: frontend/app_flowy run: | flutter packages pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations -s en.json flutter packages pub run build_runner build --delete-conflicting-outputs + + - name: Build FlowySDK + working-directory: frontend + run: | + cargo make --profile development-linux-x86 flowy-sdk-dev + - name: Run Flutter Analyzer working-directory: frontend/app_flowy run: flutter analyze diff --git a/.github/workflows/dart_test.yml b/.github/workflows/dart_test.yml index 5f80af378f..19de0274d3 100644 --- a/.github/workflows/dart_test.yml +++ b/.github/workflows/dart_test.yml @@ -43,7 +43,7 @@ jobs: shared-lib/target key: ${{ runner.os }}-rust-rust-lib-share-lib-${{ steps.rust_toolchain.outputs.rustc_hash }}-${{ hashFiles('./frontend/rust-lib/Cargo.toml') }} - - name: Deps Flutter + - name: Flutter Deps working-directory: frontend/app_flowy run: | flutter config --enable-linux-desktop