Merge branch 'main' of https://github.com/flutter/ai into copy-from-c… #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |