Skip to content

Commit

Permalink
ci review all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
aprosail committed Jun 30, 2024
1 parent e5e4a14 commit c12bac9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.4.1

- Example code for theme usages.
- Review scripts for all child repos.

## 0.4.0

- Theme template and theme handler.
Expand Down
22 changes: 16 additions & 6 deletions review.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
echo_pos() { echo && echo "\033[34m[$1]\033[0m" && echo; }

echo_pos "root"
flutter pub get || exit 1
dart format --output=none --set-exit-if-changed . || exit 1
flutter analyze --fatal-infos || exit 1
flutter test || exit 1

# Build the examples to validate.
cd example/before
flutter build web || exit 1
cd ../after
flutter build web || exit 1
cd ../..
process_example() {
name=$1
echo_pos "example/$name"
cd example/$name || exit 1
flutter pub get || exit 1
flutter build web || exit 1
cd ../..
}

process_example before || exit 1
process_example after || exit 1
process_example common || exit 1

echo_pos "root"
flutter pub publish --dry-run || exit 1

0 comments on commit c12bac9

Please sign in to comment.