mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ci: no more sed
Fix "Bad state: Unable to generate package graph"
This commit is contained in:
parent
6e1c6d7a47
commit
288afbe68b
3
.github/workflows/dart_lint.yml
vendored
3
.github/workflows/dart_lint.yml
vendored
@ -35,8 +35,7 @@ jobs:
|
||||
working-directory: frontend/app_flowy
|
||||
run: |
|
||||
flutter pub run easy_localization:generate -S ./assets/translations -f keys -O lib/generated -o locale_keys.g.dart
|
||||
sed -i '/generate: true/s/true/false/g' pubspec.yaml
|
||||
flutter pub get
|
||||
flutter packages pub get
|
||||
flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||
- name: flutter analyze
|
||||
working-directory: frontend/app_flowy
|
||||
|
3
.github/workflows/dart_test.yml
vendored
3
.github/workflows/dart_test.yml
vendored
@ -35,8 +35,7 @@ jobs:
|
||||
working-directory: frontend/app_flowy
|
||||
run: |
|
||||
flutter pub run easy_localization:generate -S ./assets/translations -f keys -O lib/generated -o locale_keys.g.dart
|
||||
sed -i '/generate: true/s/true/false/g' pubspec.yaml
|
||||
flutter pub get
|
||||
flutter packages pub get
|
||||
flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||
- name: Build FlowySDK
|
||||
working-directory: frontend
|
||||
|
@ -187,33 +187,19 @@ script = [
|
||||
"""
|
||||
cd app_flowy
|
||||
flutter clean
|
||||
sed -i '/generate: true/s/true/false/g' pubspec.yaml
|
||||
flutter pub get
|
||||
flutter packages pub get
|
||||
flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||
"""
|
||||
]
|
||||
|
||||
# TODO: Add support for Windows.
|
||||
# [tasks.generate_freezed_files.windows]
|
||||
# script_runner = "@duckscript"
|
||||
# script = [
|
||||
# """
|
||||
# cd ./app_flowy/
|
||||
# exec cmd.exe /c flutter clean
|
||||
# exec cmd.exe /c flutter pub get
|
||||
# exec cmd.exe /c flutter pub run easy_localization:generate -S assets/translations/
|
||||
# exec cmd.exe /c flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations
|
||||
# """
|
||||
# ]
|
||||
|
||||
[tasks.generate_freezed_files.mac]
|
||||
script_runner = "@shell"
|
||||
[tasks.generate_freezed_files.windows]
|
||||
script_runner = "@duckscript"
|
||||
script = [
|
||||
"""
|
||||
cd app_flowy
|
||||
flutter clean
|
||||
sed -i '' '/generate: true/s/true/false/g' pubspec.yaml
|
||||
flutter pub get
|
||||
flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||
cd ./app_flowy/
|
||||
exec cmd.exe /c flutter clean
|
||||
exec cmd.exe /c flutter packages pub get
|
||||
exec cmd.exe /c flutter packages pub get
|
||||
exec cmd.exe /c flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||
"""
|
||||
]
|
Loading…
Reference in New Issue
Block a user