Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: enforce static analysis #227

Merged
merged 5 commits into from
Mar 15, 2022
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
5 changes: 1 addition & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

<!-- Mark all that applyes -->

- [ ] I have run `dartfmt` on all changed files <!-- REQUIRED -->
- [ ] I have updated `CHANGELOG.md` with my changes <!-- REQUIRED -->
- [ ] I have run "optimize/organize imports" on all changed files
- [ ] I have addressed all analyzer warnings as best I could
- [ ] I have added/updated relevant documentation
- [ ] I have run `flutter pub publish --dry-run` and addressed any warnings
- [ ] I have added/updated relevant documentation
11 changes: 10 additions & 1 deletion .github/workflows/flutter_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,17 @@ jobs:
with:
channel: stable

- name: install dependencies
- name: Install dependencies
run: flutter pub get

- name: Check formatting
run: flutter format --set-exit-if-changed .

- name: Run analysis
run: flutter analyze

- name: Verify package health
run: flutter pub publish --dry-run

- name: Run tests
run: flutter test