mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ci: rename ci & fix generate language file command error
This commit is contained in:
parent
82ac2a5d79
commit
17c8f9fdde
@ -3,14 +3,13 @@
|
|||||||
# separate terms of service, privacy policy, and support
|
# separate terms of service, privacy policy, and support
|
||||||
# documentation.
|
# documentation.
|
||||||
|
|
||||||
name: Frontend_Dart
|
name: DartLint
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@ -26,10 +25,11 @@ jobs:
|
|||||||
- uses: subosito/flutter-action@v1
|
- uses: subosito/flutter-action@v1
|
||||||
with:
|
with:
|
||||||
channel: "dev"
|
channel: "dev"
|
||||||
- name: flutter pub get
|
- 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,4 +1,4 @@
|
|||||||
name: Frontend_Rust
|
name: RustLint
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -43,29 +43,4 @@ jobs:
|
|||||||
- run: rustup component add clippy
|
- run: rustup component add clippy
|
||||||
working-directory: frontend/rust-lib
|
working-directory: frontend/rust-lib
|
||||||
- run: cargo clippy
|
- run: cargo clippy
|
||||||
working-directory: frontend/rust-lib
|
working-directory: frontend/rust-lib
|
||||||
|
|
||||||
tests:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install Rust
|
|
||||||
run: |
|
|
||||||
curl \
|
|
||||||
--proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
||||||
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
|
|
||||||
- name: Shared-lib tests
|
|
||||||
working-directory: shared-lib
|
|
||||||
run: cargo test
|
|
36
.github/workflows/rust_test.yml
vendored
Normal file
36
.github/workflows/rust_test.yml
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
name: RustLint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Install Rust
|
||||||
|
run: |
|
||||||
|
curl \
|
||||||
|
--proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
|
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
|
||||||
|
- name: Shared-lib tests
|
||||||
|
working-directory: shared-lib
|
||||||
|
run: cargo test
|
Loading…
x
Reference in New Issue
Block a user