Skip to content

Upgrade to Flutter 3.24.3 #20

Upgrade to Flutter 3.24.3

Upgrade to Flutter 3.24.3 #20

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: DevFest PR Check Action
# Controls when the workflow will run
on:
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
validation:
name: 'Run test and build android code'
runs-on: ubuntu-latest
concurrency:
cancel-in-progress: true
group: ${{ github.event.pull_request.number || github.event.pull_request_target.number || github.ref }}
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request_target.head.ref || github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request_target.head.repo.full_name || github.event.pull_request.head.repo.full_name}}
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Install Flutter
uses: subosito/flutter-action@v2.12.0
with:
flutter-version: '3.24.3'
channel: 'stable'
- name: build apk debug
run: flutter build apk --debug
ios-validation:
name: 'iOS validation'
runs-on: macos-latest
concurrency:
cancel-in-progress: true
group: ${{ github.event.pull_request.number || github.event.pull_request_target.number || github.ref }}
needs: validation
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request_target.head.ref || github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request_target.head.repo.full_name || github.event.pull_request.head.repo.full_name}}
fetch-depth: 0
- name: 'check if need to run ios'
id: ios-validation
run: |
echo "can_run=$(git diff --name-status origin/main ios/ pubspec.yaml packages/*/pubspec.yaml .github/ | wc -l)" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
- name: Install Flutter
if: ${{ steps.ios-validation.outputs.can_run > 0 }}
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.24.3'
channel: 'stable'
- name: build iOS no codesign
if: ${{ steps.ios-validation.outputs.can_run > 0 }}
run: flutter build ipa --no-codesign