Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/check-flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ jobs:
- name: Check lints
run: flutter analyze

- name: Check local package lints
run: |
set -euo pipefail
for package in packages/*/; do
[ -f "${package}pubspec.yaml" ] || continue
(cd "$package" && dart pub get && dart analyze --fatal-infos)
done

test:
name: test
runs-on: ubuntu-latest
Expand All @@ -69,3 +77,15 @@ jobs:

- name: Run tests
run: flutter test

- name: Run local package tests
run: |
set -euo pipefail
for package in packages/*/; do
[ -d "${package}test" ] || continue
if grep -qE '^\s+sdk:\s*flutter\s*$' "${package}pubspec.yaml"; then
(cd "$package" && flutter pub get && flutter test)
else
(cd "$package" && dart pub get && dart test)
fi
done
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ Details: [docs/common.md](docs/common.md)

Workflows specific to Flutter projects:

- `check-flutter.yml` – Format, analyze, and test using pinned Flutter
- `check-flutter.yml` – Format, analyze, and test using pinned Flutter,
including any local packages under `packages/`
- `preload-caches-flutter.yml` – Cache pinned Flutter dependencies
- `bump-version-flutter-app.yml` – Bump CalVer version and changelog, open PR
- `bump-version-flutter-lib.yml` – Bump SemVer version and changelog, open PR
Expand Down
Loading