mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
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:
parent
b34d684e67
commit
e449f5e1d5
2 changed files with 22 additions and 0 deletions
21
.github/workflows/dart.yml
vendored
Normal file
21
.github/workflows/dart.yml
vendored
Normal file
|
|
@ -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 .
|
||||
|
|
@ -217,6 +217,7 @@ This is an open-source project. Contributions are welcome!
|
|||
- Use `const` constructors where possible
|
||||
- Keep functions small and focused
|
||||
- Avoid premature abstractions
|
||||
- Run dart format on all changes before submitting
|
||||
|
||||
## Support
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue