Modifying mock firebase_options.dart for CI compilation fix, cat / EO… #85
This file contains hidden or 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: inspector_gadget | |
concurrency: | |
group: $-$ | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "*" ] | |
jobs: | |
semantic-pull-request: | |
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1 | |
build: | |
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 | |
with: | |
min_coverage: 10 | |
flutter_channel: stable | |
setup: | | |
echo "const geminiApiKey = 'a';" > lib/secrets.dart | |
echo "const chirpToken = 'a';" >> lib/secrets.dart | |
echo "const alphaVantageAccessKey = 'a';" >> lib/secrets.dart | |
echo "const tavilyApiKey = 'a';" >> lib/secrets.dart | |
cat <<EOF > lib/firebase_options.json | |
// ignore_for_file: type=lint | |
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions; | |
import 'package:flutter/foundation.dart' | |
show defaultTargetPlatform, TargetPlatform; | |
class DefaultFirebaseOptions { | |
static FirebaseOptions get currentPlatform { | |
if (defaultTargetPlatform == TargetPlatform.android) { | |
return android; | |
} | |
throw UnsupportedError(''); | |
} | |
static const FirebaseOptions android = FirebaseOptions( | |
apiKey: '', | |
appId: '', | |
messagingSenderId: '', | |
projectId: '', | |
storageBucket: '', | |
); | |
} | |
EOF | |
spell-check: | |
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1 | |
with: | |
includes: | | |
**/*.md | |
modified_files_only: false |