Skip to content

Commit

Permalink
Merge pull request #141 from nimblehq/feature/add-CI-steps-to-verify-…
Browse files Browse the repository at this point in the history
…generated-project

[#137] Add CI steps to verify the "generated project" by the script
  • Loading branch information
luongvo authored Jan 17, 2023
2 parents cc7a175 + cae40db commit 98206d1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,23 @@ jobs:

- name: Set new project
run: make run PACKAGE_NAME=co.nimblehq.flutter.template PROJECT_NAME=flutter_templates APP_NAME="Flutter Templates"

- uses: subosito/flutter-action@v1
with:
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
flutter-version: '3.3.10'

- name: Get flutter dependencies.
run: flutter pub get

- name: Run code generator
run: flutter packages pub run build_runner build --delete-conflicting-outputs

- name: Check for any formatting issues in the code.
run: flutter format --set-exit-if-changed .

- name: Statically analyze the Dart code for any errors.
run: flutter analyze .

- name: Run widget tests, unit tests.
run: flutter test --machine --coverage
2 changes: 1 addition & 1 deletion .template/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
flutter-version: '2.10.3'
flutter-version: '3.3.10'

- name: Get flutter dependencies.
run: flutter pub get
Expand Down
7 changes: 7 additions & 0 deletions .template/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,10 @@ linter:

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

analyzer:
exclude: [
lib/**.g.dart,
lib/**.freezed.dart,
test/**.mocks.dart
]

0 comments on commit 98206d1

Please sign in to comment.