chore(very_good_flutter_plugin): 1.3.0 #360
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: very_good_flutter_plugin | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| paths: | |
| - .github/workflows/very_good_flutter_plugin.yaml | |
| - "very_good_flutter_plugin/**" | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - .github/workflows/very_good_flutter_plugin.yaml | |
| - "very_good_flutter_plugin/**" | |
| branches: | |
| - main | |
| jobs: | |
| brick: | |
| defaults: | |
| run: | |
| working-directory: very_good_flutter_plugin/ | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| platform: | |
| - android | |
| - ios | |
| - linux | |
| - macos | |
| - web | |
| - windows | |
| steps: | |
| - name: 📚 Git Checkout | |
| uses: actions/checkout@v6 | |
| - name: 🐦 Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: "3.41.x" | |
| - name: 🧱 Mason Make | |
| run: | | |
| dart pub global activate mason_cli | |
| dart pub global activate very_good_cli | |
| mason get | |
| mason make very_good_flutter_plugin -c config.json --on-conflict overwrite --platforms ${{ matrix.platform }} -o very_good_flutter_plugin_output | |
| - name: 📦 Install Dependencies | |
| run: very_good packages get --recursive very_good_flutter_plugin_output | |
| - name: ✨ Check Formatting | |
| if: false | |
| run: dart format --set-exit-if-changed very_good_flutter_plugin_output | |
| - name: 🕵️ Analyze | |
| if: false | |
| run: dart analyze --fatal-infos --fatal-warnings very_good_flutter_plugin_output | |
| - name: 🧪 Run Tests | |
| run: | | |
| cd very_good_flutter_plugin_output | |
| very_good test -j 4 --recursive --optimization --coverage --test-randomize-ordering-seed random | |
| - name: 📑 Combine Code Coverage | |
| run: | | |
| sudo apt-get -y install lcov | |
| very_good packages get --recursive tool/merge_coverage | |
| cd very_good_flutter_plugin_output | |
| dart run ../tool/merge_coverage/merge_coverage.dart | |
| - name: 📊 Check Code Coverage | |
| uses: VeryGoodOpenSource/very_good_coverage@v3 | |
| with: | |
| path: very_good_flutter_plugin/very_good_flutter_plugin_output/coverage/lcov.info |