Skip to content
Closed
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
22 changes: 7 additions & 15 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,16 @@ on:
branches: [master]

jobs:
test:
checks:
runs-on: ubuntu-latest
container:
image: google/dart:latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- name: Install dependencies
run: flutter pub get
- name: Run linter
run: flutter analyze
- name: Run tests
run: flutter test

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- run: flutter format .
- run: dart pub get
- run: dart analyze lib test
- run: dart test
- run: dart format .
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update formatted files
Expand Down