Skip to content

Commit

Permalink
ci: enforce static analysis (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Mar 15, 2022
2 parents 35e2584 + f959a9a commit b99d1f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
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

0 comments on commit b99d1f5

Please sign in to comment.