ci: use linux vm for dart unit test (#3991)

* chore: use the faster linux vm

* chore: download artifact

* chore: make it work

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
This commit is contained in:
Richard Shiue
2023-11-24 16:20:25 +08:00
committed by GitHub
parent 414bb26e56
commit c475a5d960
2 changed files with 56 additions and 32 deletions

View File

@ -263,25 +263,33 @@ script = [
]
script_runner = "@duckscript"
[tasks.code_generation]
[tasks.pub_get]
script_runner = "@shell"
script = ["""
cd appflowy_flutter
flutter clean
flutter pub get
flutter packages pub get
cd ../
"""]
[tasks.pub_get.windows]
script_runner = "@duckscript"
script = ["""
cd ./appflowy_flutter/
exec cmd.exe /c flutter clean
exec cmd.exe /c flutter pub get
cd ../
"""]
[tasks.code_generation]
script_runner = "@shell"
script = ["""
sh scripts/code_generation/generate.sh
"""]
[tasks.code_generation.windows]
script_runner = "@duckscript"
script = ["""
cd ./appflowy_flutter/
exec cmd.exe /c flutter clean
exec cmd.exe /c flutter pub get
exec cmd.exe /c flutter packages pub get
cd ../
exec scripts/code_generation/generate.cmd
"""]