Test workflow #17
Workflow file for this run
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 Checks | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: ["main"] | |
paths: | |
- '**/*.dart' | |
jobs: | |
flutter-check: | |
name: Flutter Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup Flutter | |
uses: flutter-actions/setup-flutter@v3 | |
with: | |
channel: stable | |
version: latest | |
cache: true | |
cache-sdk: true | |
cache-key: true | |
- name: Remove firebase initialization from main | |
run: | | |
sed -i '/await Firebase/,+2d' lib/main.dart | |
sed -i '/firebase/d' lib/main.dart | |
- name: Flutter Analyze | |
run: flutter analyze | |
- name: Dart Format | |
run: dart format . --output=none --set-exit-if-changed |