Skip to content

Version 1.6.1

Version 1.6.1 #82

Workflow file for this run

name: Flutter
on:
pull_request:
branches: [ main ]
jobs:
checkout:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/upload-artifact@v4
with:
name: repository
path: ./
packages:
needs: checkout
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: repository
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
analyze:
needs: packages
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: repository
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter analyze
#test:
# needs: analyze
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v4
# with:
# name: repository
# - uses: subosito/flutter-action@v2
# with:
# channel: 'stable'
# - run: flutter test
build-android:
needs: analyze
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: repository
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: "temurin"
- run: flutter build apk --debug
- uses: actions/upload-artifact@v4
with:
name: android
path: build/app/outputs/flutter-apk/app-debug.apk
build-ios:
needs: analyze
runs-on: macos-latest
steps:
- uses: actions/download-artifact@v4
with:
name: repository
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter build ios --debug --no-codesign
- uses: actions/upload-artifact@v4
with:
name: ios
path: build/ios/iphoneos/Runner.app