Skip to content

Commit e0a392d

Browse files
authored
chore: update flutter_ci.yaml
1 parent 515cd50 commit e0a392d

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

.github/workflows/flutter_ci.yaml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
job:
28-
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest,}
29-
- { target: x86_64-apple-darwin, os: macos-latest, }
30-
- { target: x86_64-pc-windows-msvc, os: windows-latest, }
27+
os: [ubuntu-latest, macos-latest, windows-latest]
3128
include:
3229
- os: ubuntu-latest
3330
flutter_profile: development-linux-x86_64
31+
target: x86_64-unknown-linux-gnu
3432
- os: macos-latest
3533
flutter_profile: development-mac-x86_64
34+
target: x86_64-apple-darwin
3635
- os: windows-latest
3736
flutter_profile: development-windows-x86
37+
target: x86_64-pc-windows-msvc
3838
runs-on: ${{ matrix.os }}
3939

4040
steps:
@@ -46,9 +46,8 @@ jobs:
4646
uses: actions-rs/toolchain@v1
4747
with:
4848
toolchain: ${{ env.RUST_TOOLCHAIN }}
49-
target: ${{ matrix.job.target }}
49+
target: ${{ matrix.target }}
5050
override: true
51-
components: rustfmt
5251
profile: minimal
5352

5453
- name: Install flutter
@@ -73,13 +72,14 @@ jobs:
7372
sudo wget -qO /etc/apt/trusted.gpg.d/dart_linux_signing_key.asc https://dl-ssl.google.com/linux/linux_signing_key.pub
7473
sudo wget -qO /etc/apt/sources.list.d/dart_stable.list https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list
7574
sudo apt-get update
76-
sudo apt-get install -y dart curl build-essential libsqlite3-dev libssl-dev clang cmake ninja-build pkg-config libgtk-3-dev
75+
sudo apt-get install -y dart curl build-essential libssl-dev clang cmake ninja-build pkg-config libgtk-3-dev
7776
sudo apt-get install keybinder-3.0
7877
elif [ "$RUNNER_OS" == "Windows" ]; then
7978
vcpkg integrate install
8079
elif [ "$RUNNER_OS" == "macOS" ]; then
8180
echo 'do nothing'
8281
fi
82+
cargo make appflowy-deps-tools
8383
shell: bash
8484

8585
- name: Enable Flutter Desktop
@@ -102,16 +102,12 @@ jobs:
102102
working-directory: frontend/app_flowy
103103
run: flutter analyze
104104

105-
- name: Build Flutter unit test lib
106-
working-directory: frontend
107-
run: |
108-
cargo make build-test-lib
109-
110105
- name: Run Flutter unit tests
111-
working-directory: frontend/app_flowy
106+
working-directory: frontend
112107
run: |
113-
if [ "$RUNNER_OS" == "Linux" ]; then
114-
flutter pub get
115-
flutter test
108+
if [ "$RUNNER_OS" == "macOS" ]; then
109+
cargo make dart_unit_test
110+
elif [ "$RUNNER_OS" == "Windows" ]; then
111+
cargo make dart_unit_test
116112
fi
117-
shell: bash
113+
shell: bash

0 commit comments

Comments
 (0)