Skip to content

Add dart doc step to flutter.yml #5

Add dart doc step to flutter.yml

Add dart doc step to flutter.yml #5

Workflow file for this run

name: Flutter CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint-and-test:
name: Static code analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- run: dart --version
- run: flutter --version
- run: flutter pub get
- name: Lint analysis
run: dart analyze --fatal-infos
- name: Dart format
run: dart format --output none --set-exit-if-changed .
- name: dart fix
run: dart fix --dry-run
- name: Run tests
run: flutter test
- name: Check API docs can generate
run: dart doc --dry-run