Skip to content

Commit

Permalink
Exclude generated files when testing formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed May 23, 2023
1 parent bb26fed commit 279c068
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ jobs:
run: dart run build_runner build

- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
run: |
dart format --output=none --set-exit-if-changed $(find lib -name "*.dart" -not \( -name "*.*freezed.dart" -o -name "*.*g.dart" \) )
dart format --output=none --set-exit-if-changed $(find test -name "*.dart" -not \( -name "*.*freezed.dart" -o -name "*.*g.dart" \) )
# run: dart format --output=none --set-exit-if-changed .

- name: Analyze project source
run: flutter analyze
Expand Down

0 comments on commit 279c068

Please sign in to comment.