Skip to content

Merge ci/use-flutter-instead-dart-format: update CI configuration #173

Merge ci/use-flutter-instead-dart-format: update CI configuration

Merge ci/use-flutter-instead-dart-format: update CI configuration #173

Workflow file for this run

name: Code Quality
on: push
jobs:
analyze:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version-file: pubspec.yaml
- name: Analyze code
run: flutter analyze
format:
name: Code Formatting
needs: [analyze]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version-file: pubspec.yaml
- name: Format code
run: dart format --output=none .
matrics:
name: Code Matrics
needs: [analyze]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version-file: pubspec.yaml
- name: Run dart code metrics
run: dart run dart_code_metrics:metrics analyze lib