[Refatoração] Ajustes no Gerenciamento de Áudio e Downgrade do flutter_sound #363
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: Check Auto Generated Files | |
on: | |
push: | |
branches: [ 'main' ] | |
pull_request: | |
concurrency: | |
group: generated-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Retrieve Flutter version from FVM config | |
uses: kuhnroyal/flutter-fvm-config-action@v1 | |
- name: Setup Flutter SDK | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Setup Firebase Options | |
run: | | |
tee lib/firebase_options.dart <<EOF | |
class DefaultFirebaseOptions { | |
static const currentPlatform = null; | |
} | |
EOF | |
- name: Check if generated files are up to date | |
run: | | |
flutter pub run build_runner build --delete-conflicting-outputs | |
CHANGED_FILES=$(git diff --name-only | wc -l) | |
if [[ $CHANGED_FILES -gt 0 ]]; then | |
echo " | |
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ | |
║ ║ | |
║ Generated files are not up to date. ║ | |
║ Please run 'flutter pub run build_runner build --delete-conflicting-outputs' locally and commit the changes. ║ | |
║ ║ | |
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ | |
" | |
exit 1 | |
fi |