Update README.md #471
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: Flutter CI | |
on: | |
push: | |
branches: [main, development] | |
pull_request: | |
branches: [main, development] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
platform: [windows-latest, ubuntu-latest, macos-latest] | |
runs-on: ${{matrix.platform}} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: "12.x" | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.27.4" # Ensuring latest Dart version | |
architecture: x64 | |
- run: flutter pub get | |
- run: dart format . --set-exit-if-changed | |
- run: flutter analyze . | |
build: | |
strategy: | |
matrix: | |
platform: [windows-latest, macos-latest, ubuntu-latest] | |
runs-on: ${{matrix.platform}} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: "12.x" | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.27.4" # Updated to match test job | |
architecture: x64 | |
- run: flutter pub get | |
- run: dart format . --set-exit-if-changed | |
- run: flutter analyze . | |
# - run: flutter build apk | |
# - uses: actions/upload-artifact@v1 | |
# with: | |
# name: release-apk | |
# path: build/app/outputs/apk/release/app-release.apk |