Skip to content

Test workflow

Test workflow #17

Workflow file for this run

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