8/15/2023 0 Comments Subosito flutter action v1Adding a build step to the end would make sure that your project still builds correctly, but keep in mind this would make the action take longer to finish. If your unit tests don't have great coverage you could potentially break your project and I'm pretty sure your tests would still run without any issues. Download ZIP Github actions for Flutter app Raw releaseasset. I think the only thing you could potentially add to the above action is something to build the project at the end like flutter build ios or flutter build apk. In some of my projects I started specifying 2.x for the version(but tossed out caching) so I don't have to update my actions every couple of weeks. You can also change the Flutter version around to your liking, the action above is pinned to 2.2.3 which is the latest stable version at this time.You signed in with another tab or window. You can’t perform that action at this time. I also added workflow_dispatch so the action can be run manually - the reason I did this is because the cache doesn't seem to build properly unless you run the action on the base branch once(this seems to be by design according to GitHub). dart-lang/setup-dart v1 actions/checkout v3 subosito/flutter-action v2 codecov/codecov-action v3 actions/checkout v3 dart-lang/setup-dart v1 actions/checkout v3. actions/setup-javav1 with: java-version: 12.x - uses: subosito/flutter-actionv1 with: channel: stable - run: flutter doctor - run: flutter pub get.You could change this to whatever your default branch is, you can even define multiple branches. The above action will run whenever you create a Pull Request against the master branch. Use latest release for particular channel: steps : - uses: actions/checkoutv2 - uses: actions/setup-javav1 with : java-version: '12.x' - uses: subosito/flutter-actionv1 with : channel: 'stable' or: 'beta', 'dev' or 'master' - run: flutter pub get - run: flutter test - run: flutter build apk.Enter fullscreen mode Exit fullscreen mode
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |