generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: CI was caching incorrect directory for Hermit (#19)
- Loading branch information
1 parent
60ca2f8
commit 947664b
Showing
5 changed files
with
61 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Run the Flutter app | ||
run: | ||
flutter run | ||
|
||
# Get packages | ||
get: | ||
#!/bin/bash | ||
echo "Getting dependencies for main project" | ||
flutter pub get | ||
echo "Getting dependencies for packages" | ||
for dir in packages/*; do \ | ||
if [ -d $dir ]; then \ | ||
echo "Getting dependencies in $dir"; \ | ||
(cd $dir && flutter pub get || dart pub get); \ | ||
fi \ | ||
done | ||
|
||
# Clean the project | ||
clean: | ||
flutter clean | ||
|
||
# Build the app for release | ||
build: | ||
flutter build apk | ||
|
||
# Run tests | ||
test: test-app test-packages | ||
|
||
# Run Flutter tests | ||
test-app: | ||
@echo "Running Flutter tests" | ||
@flutter test | ||
|
||
# Run package tests | ||
test-packages: | ||
@echo "Running Dart tests in packages" | ||
@for dir in packages/*; do \ | ||
if [ -d $dir ]; then \ | ||
echo "Running tests in $dir"; \ | ||
(cd $dir && dart test); \ | ||
fi \ | ||
done | ||
|
||
# Analyze the project's Dart code | ||
analyze: | ||
@flutter analyze | ||
@for dir in packages/*; do \ | ||
if [ -d $dir ]; then \ | ||
(cd $dir && dart analyze); \ | ||
fi \ | ||
done | ||
|
||
# Generate code | ||
generate: | ||
flutter gen-l10n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hermit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.just-1.16.0.pkg |