build: upgrade flutter_soloud
#215
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: Flutter Analyze | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| name: Analyze code and requirements | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Fetch material_plus dependency | |
| run: git clone --depth=1 https://gitlab.com/flutterby-group/material_plus.git ../material_plus | |
| - name: Write keys.dart to file | |
| run: | | |
| cat << EOF > ./lib/keys.dart | |
| ${{ secrets.KEYS_FILE }} | |
| EOF | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - name: Verify Flutter installation | |
| run: flutter doctor | |
| - name: Check pub dependencies | |
| run: flutter pub get | |
| - name: Run Dart Analyze | |
| uses: invertase/github-action-dart-analyzer@v3 | |
| with: | |
| fatal-infos: true | |
| fatal-warnings: true | |
| annotate: true | |
| working-directory: lib/ | |
| - name: Check Code formatting | |
| run: dart format -o none --set-exit-if-changed . | |
| - name: Block merge if checks fail | |
| if: ${{ failure() }} | |
| run: echo "Checks failed, cannot merge." && exit 1 |