ci: generate language files and install pb tools

This commit is contained in:
appflowy 2022-02-09 20:35:07 +08:00
parent 5809758539
commit 82ac2a5d79
2 changed files with 16 additions and 1 deletions

View File

@ -28,7 +28,10 @@ jobs:
channel: "dev"
- name: flutter pub get
working-directory: frontend/app_flowy
run: flutter pub get
run:
flutter pub get
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
- name: flutter analyze
working-directory: frontend/app_flowy
run: flutter analyze

View File

@ -34,6 +34,12 @@ jobs:
with:
toolchain: stable
override: true
- name: Install protobuf tool
- run:
cargo install --force cargo-make
cargo make flowy_dev
echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
working-directory: frontend
- run: rustup component add clippy
working-directory: frontend/rust-lib
- run: cargo clippy
@ -51,6 +57,12 @@ jobs:
source $HOME/.cargo/env
rustup toolchain install stable
rustup default stable
- name: Install protobuf tool
- run:
cargo install --force cargo-make
cargo make flowy_dev
echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
working-directory: frontend
- name: Frontend tests
working-directory: frontend/rust-lib
run: cargo test