add dart format workflow
checks code has been formatted with dart format on push and pull request adds a note in README for contributors
This commit is contained in:
1 parent
b34d684e67
commit
e449f5e1d5
2 files changed
+22
No files matched your search
@@ -0,0 +1,21 @@
|
||||
name: Dart Format
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Dart
|
||||
uses: dart-lang/setup-dart@v1
|
||||
|
||||
- name: Install Pub Dependencies
|
||||
run: dart pub get
|
||||
|
||||
- name: Verify Formatting
|
||||
run: dart format --output=none --set-exit-if-changed .
|
||||
Reference in new issue
Block a user