Skip to content

Commit

Permalink
fix: github actions again
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevithakannan2 committed Nov 6, 2024
1 parent 5ee7af4 commit 5d9f7fb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 42 deletions.
3 changes: 3 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"flutter": "stable"
}
34 changes: 0 additions & 34 deletions .github/actions/flutter-setup/action.yml

This file was deleted.

23 changes: 16 additions & 7 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,23 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup Flutter Environment
uses: ./.github/actions/flutter-setup

- name: Setup Flutter
uses: flutter-actions/setup-flutter@v3
with:
firebase-options: ${{ secrets.FIREBASE_OPTIONS }}

- name: Dart Format Check
run: dart format --output=none $(find . -name "*.dart" ! -path "./lib/firebase_options.dart") --set-exit-if-changed
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
/android/app/build
/android/app/build
.fvm/

0 comments on commit 5d9f7fb

Please sign in to comment.