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:
3
.github/workflows/dart_lint.yml
vendored
3
.github/workflows/dart_lint.yml
vendored
@ -35,8 +35,7 @@ jobs:
|
|||||||
working-directory: frontend/app_flowy
|
working-directory: frontend/app_flowy
|
||||||
run: |
|
run: |
|
||||||
flutter pub run easy_localization:generate -S ./assets/translations -f keys -O lib/generated -o locale_keys.g.dart
|
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 packages pub get
|
||||||
flutter pub get
|
|
||||||
flutter packages pub run build_runner build --delete-conflicting-outputs
|
flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||||
- name: flutter analyze
|
- name: flutter analyze
|
||||||
working-directory: frontend/app_flowy
|
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
|
working-directory: frontend/app_flowy
|
||||||
run: |
|
run: |
|
||||||
flutter pub run easy_localization:generate -S ./assets/translations -f keys -O lib/generated -o locale_keys.g.dart
|
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 packages pub get
|
||||||
flutter pub get
|
|
||||||
flutter packages pub run build_runner build --delete-conflicting-outputs
|
flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||||
- name: Build FlowySDK
|
- name: Build FlowySDK
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
|
@ -187,33 +187,19 @@ script = [
|
|||||||
"""
|
"""
|
||||||
cd app_flowy
|
cd app_flowy
|
||||||
flutter clean
|
flutter clean
|
||||||
sed -i '/generate: true/s/true/false/g' pubspec.yaml
|
flutter packages pub get
|
||||||
flutter pub get
|
|
||||||
flutter packages pub run build_runner build --delete-conflicting-outputs
|
flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||||
"""
|
"""
|
||||||
]
|
]
|
||||||
|
|
||||||
# TODO: Add support for Windows.
|
[tasks.generate_freezed_files.windows]
|
||||||
# [tasks.generate_freezed_files.windows]
|
script_runner = "@duckscript"
|
||||||
# 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"
|
|
||||||
script = [
|
script = [
|
||||||
"""
|
"""
|
||||||
cd app_flowy
|
cd ./app_flowy/
|
||||||
flutter clean
|
exec cmd.exe /c flutter clean
|
||||||
sed -i '' '/generate: true/s/true/false/g' pubspec.yaml
|
exec cmd.exe /c flutter packages pub get
|
||||||
flutter pub get
|
exec cmd.exe /c flutter packages pub get
|
||||||
flutter packages pub run build_runner build --delete-conflicting-outputs
|
exec cmd.exe /c flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||||
"""
|
"""
|
||||||
]
|
]
|
Reference in New Issue
Block a user